color-device: Let the device check if it should skip updating
Not everything will require the device to be "ready" (i.e. have a ICC profile assigned). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3904>
This commit is contained in:
@ -1234,6 +1234,9 @@ meta_color_device_update (MetaColorDevice *color_device)
|
|||||||
size_t lut_size;
|
size_t lut_size;
|
||||||
unsigned int temperature;
|
unsigned int temperature;
|
||||||
|
|
||||||
|
if (!meta_color_device_is_ready (color_device))
|
||||||
|
return;
|
||||||
|
|
||||||
color_profile = meta_color_device_get_assigned_profile (color_device);
|
color_profile = meta_color_device_get_assigned_profile (color_device);
|
||||||
if (!color_profile)
|
if (!color_profile)
|
||||||
return;
|
return;
|
||||||
|
@ -252,9 +252,6 @@ update_device_properties (MetaColorManager *color_manager)
|
|||||||
if (!color_device)
|
if (!color_device)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!meta_color_device_is_ready (color_device))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
meta_color_device_update (color_device);
|
meta_color_device_update (color_device);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user