From d60980f23f73159bf4e2558b2cd674380604eea0 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 13:50:03 -0400 Subject: core: Update frame style when _GTK_THEME_VARIANT changes When the _GTK_THEME_VARIANT property changes, rather than just updating the window's theme_variant property, update its frame style as well, so that the window decoration reflects the requested variant. As the initial properties of a window may be read before its frame is created, there will be cases where the change is not picked up initially. https://bugzilla.gnome.org/show_bug.cgi?id=645355 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/8a779ab9 --- src/core/window-props.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/window-props.c b/src/core/window-props.c index 0f492a5e..54a2ecee 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -1550,6 +1550,8 @@ reload_gtk_theme_variant (MetaWindow *window, g_free (current_variant); window->gtk_theme_variant = g_strdup (requested_variant); + if (window->frame) + meta_ui_update_frame_style (window->screen->ui, window->frame->xwindow); } } /** -- cgit v1.2.1