1
0
Fork 0

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:
Sebastian Wick 2024-07-16 20:04:20 +02:00
parent 8eeec32c90
commit 6452c21b85
2 changed files with 3 additions and 3 deletions

View file

@ -1234,6 +1234,9 @@ meta_color_device_update (MetaColorDevice *color_device)
size_t lut_size;
unsigned int temperature;
if (!meta_color_device_is_ready (color_device))
return;
color_profile = meta_color_device_get_assigned_profile (color_device);
if (!color_profile)
return;

View file

@ -252,9 +252,6 @@ update_device_properties (MetaColorManager *color_manager)
if (!color_device)
continue;
if (!meta_color_device_is_ready (color_device))
continue;
meta_color_device_update (color_device);
}
}