From 1fbe641952f63f7a1632e5906e72596ded0adde0 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 14:16:57 -0400 Subject: frames: Explicitly initialize style contexts We were relying on GTK+ emitting GtkWidget::style-updated during widget initialization to create the GtkStyleContexts used for window decorations. A recent GTK+ update broke this assumption, so do the necessary initialization ourselves. https://bugzilla.gnome.org/show_bug.cgi?id=671796 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/e4fde7b0 --- src/ui/frames.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/frames.c b/src/ui/frames.c index 6d0d5aa1..c7d0a20d 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -265,6 +265,7 @@ meta_frames_init (MetaFrames *frames) frames->cache = g_hash_table_new (g_direct_hash, g_direct_equal); frames->style_variants = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref); + update_style_contexts (frames); meta_prefs_add_listener (prefs_changed_callback, frames); } -- cgit v1.2.1