diff options
author | Victor Kareh <[email protected]> | 2019-05-21 14:16:57 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 10:49:37 -0400 |
commit | 1fbe641952f63f7a1632e5906e72596ded0adde0 (patch) | |
tree | aced8f33910a0b867d5b9badd97416cf230da0c0 /src/ui | |
parent | 32b900d676c916132bd4f3526837e24e9407bc38 (diff) | |
download | marco-1fbe641952f63f7a1632e5906e72596ded0adde0.tar.bz2 marco-1fbe641952f63f7a1632e5906e72596ded0adde0.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')
-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 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); } |