From be6775767ccbbe370fd582287e3ce1b4034e82cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 20 Mar 2011 22:56:08 +0100 Subject: [PATCH] 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 --- src/core/window-props.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window-props.c b/src/core/window-props.c index 3ea53366a..7affb9677 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -1540,6 +1540,9 @@ reload_gtk_theme_variant (MetaWindow *window, window->gtk_theme_variant = g_strdup (requested_variant); else window->gtk_theme_variant = NULL; + + if (window->frame) + meta_ui_update_frame_style (window->screen->ui, window->frame->xwindow); } }