color-device: Don't create colord profiles for virtual monitors
Colord is a system service which will result in a polkit dialog showing
up when connecting a remote session.
We want to get rid of colord eventually anyway, so disconnecting virtual
monitors from colord isn't an issue.
Fixes: f5ce2ddf3c
("color-manager: Create color devices also for virtual monitors")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3942>
This commit is contained in:
parent
bb55a1e83a
commit
82fa9e676a
1 changed files with 7 additions and 2 deletions
|
@ -293,7 +293,8 @@ meta_color_device_dispose (GObject *object)
|
|||
|
||||
cd_device = color_device->cd_device;
|
||||
cd_device_id = color_device->cd_device_id;
|
||||
if (!cd_device && cd_device_id && meta_color_manager_is_ready (color_manager))
|
||||
if (!cd_device && !color_device->is_ready &&
|
||||
cd_device_id && meta_color_manager_is_ready (color_manager))
|
||||
{
|
||||
g_autoptr (GError) error = NULL;
|
||||
|
||||
|
@ -707,7 +708,11 @@ meta_color_device_new (MetaColorManager *color_manager,
|
|||
|
||||
update_color_state (color_device);
|
||||
|
||||
if (meta_color_manager_is_ready (color_manager))
|
||||
if (meta_monitor_is_virtual (monitor))
|
||||
{
|
||||
meta_color_device_notify_ready (color_device, FALSE);
|
||||
}
|
||||
else if (meta_color_manager_is_ready (color_manager))
|
||||
{
|
||||
create_cd_device (color_device);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue