[metacity] core: Update frame style when _GTK_THEME_VARIANT changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] core: Update frame style when _GTK_THEME_VARIANT changes
- Date: Wed, 8 Oct 2014 18:30:33 +0000 (UTC)
commit 8a779ab9ae6163840a69243f29a92c86b6590068
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Mar 20 22:56:08 2011 +0100
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index 586fb99..e688ca7 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -1647,6 +1647,9 @@ 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]