diff --git a/src/frames/meta-window-tracker.c b/src/frames/meta-window-tracker.c index 34c02a6b7..174b8b8c1 100644 --- a/src/frames/meta-window-tracker.c +++ b/src/frames/meta-window-tracker.c @@ -89,9 +89,7 @@ meta_window_tracker_get_property (GObject *object, } static void -on_color_scheme_changed_cb (GSettings *interface_settings, - GParamSpec *pspec, - MetaWindowTracker *window_tracker) +update_color_scheme (MetaWindowTracker *window_tracker) { GDesktopColorScheme color_scheme; gboolean is_dark; @@ -105,6 +103,14 @@ on_color_scheme_changed_cb (GSettings *interface_settings, NULL); } +static void +on_color_scheme_changed_cb (GSettings *interface_settings, + GParamSpec *pspec, + MetaWindowTracker *window_tracker) +{ + update_color_scheme (window_tracker); +} + static void set_up_frame (MetaWindowTracker *window_tracker, Window xwindow) @@ -409,6 +415,7 @@ meta_window_tracker_init (MetaWindowTracker *window_tracker) "changed::color-scheme", G_CALLBACK (on_color_scheme_changed_cb), window_tracker); + update_color_scheme (window_tracker); window_tracker->frames = g_hash_table_new_full (NULL, NULL, NULL,