color-device: Update the color device on force-hdr debug-control changes

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4298>
This commit is contained in:
Sebastian Wick 2025-02-22 16:10:15 +01:00 committed by Marge Bot
parent 74f8e83154
commit d8512767ea

View File

@ -734,6 +734,11 @@ meta_color_device_new (MetaColorManager *color_manager,
color_device,
G_CONNECT_SWAPPED | G_CONNECT_AFTER);
g_signal_connect_object (debug_control, "notify::force-hdr",
G_CALLBACK (meta_color_device_update),
color_device,
G_CONNECT_SWAPPED | G_CONNECT_AFTER);
return color_device;
}