[mutter] core: Update frame style when _GTK_THEME_VARIANT changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] core: Update frame style when _GTK_THEME_VARIANT changes
- Date: Wed, 18 May 2011 21:10:26 +0000 (UTC)
commit be6775767ccbbe370fd582287e3ce1b4034e82cd
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 3ea5336..7affb96 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]