diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-04 18:03:23 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-04 18:03:23 +0300 |
commit | f8e54c7cdb323763ef776749bbd7574807eefa6c (patch) | |
tree | 29bea53243ab8cbbb890c657d1325489455ace91 | |
parent | 13137b1d1281f09b31c22aa289a84af56e92434f (diff) | |
download | metacity-f8e54c7cdb323763ef776749bbd7574807eefa6c.tar.gz |
theme: add .solid-csd class to window-frame ...
... when running without compositing manager.
-rw-r--r-- | src/ui/theme.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 00a14720..327b22b0 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -5850,6 +5850,7 @@ meta_theme_create_style_info (GdkScreen *screen, MetaStyleInfo *style_info; GtkCssProvider *provider; char *theme_name; + gboolean compositing_manager; g_object_get (gtk_settings_get_for_screen (screen), "gtk-theme-name", &theme_name, @@ -5864,13 +5865,15 @@ meta_theme_create_style_info (GdkScreen *screen, style_info = g_new0 (MetaStyleInfo, 1); style_info->refcount = 1; + compositing_manager = meta_prefs_get_compositing_manager (); + style_info->styles[META_STYLE_ELEMENT_FRAME] = create_style_context (META_TYPE_FRAMES, NULL, provider, GTK_STYLE_CLASS_BACKGROUND, "window-frame", - "ssd", + compositing_manager ? "ssd" : "solid-csd", NULL); style_info->styles[META_STYLE_ELEMENT_TITLEBAR] = create_style_context (GTK_TYPE_HEADER_BAR, |