monitor: Keep the dbus night-light-supported property in sync

Fixes #2424

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2623>
This commit is contained in:
Sebastian Wick 2022-09-13 20:03:42 +02:00 committed by Marge Bot
parent 6edb399b2b
commit 89b8edcc6f

View File

@ -1184,6 +1184,8 @@ update_night_light_supported (MetaMonitorManager *manager)
priv->night_light_supported = night_light_supported;
g_object_notify_by_pspec (G_OBJECT (manager),
obj_props[PROP_NIGHT_LIGHT_SUPPORTED]);
meta_dbus_display_config_set_night_light_supported (manager->display_config,
night_light_supported);
}
void