diff options
author | Victor Kareh <[email protected]> | 2019-05-21 14:16:57 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-16 18:12:44 +0200 |
commit | 720e5f7b066ff30af146dc0449f6ff23f359e383 (patch) | |
tree | c3e04a797b1f87b7e7ef321ddc831436c810d3f8 /src/ui/frames.c | |
parent | aff2e261a7331f35fa7821fd9b524e217723c2fb (diff) | |
download | marco-720e5f7b066ff30af146dc0449f6ff23f359e383.tar.bz2 marco-720e5f7b066ff30af146dc0449f6ff23f359e383.tar.xz |
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
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r-- | src/ui/frames.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 95f037c3..6ce7e5c5 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); } |