summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-21 13:37:01 -0400
committerVictor Kareh <[email protected]>2019-06-05 10:49:37 -0400
commitb57ab969c03612a0aaa1d9d8b6c0d67d13d9281f (patch)
treed450e9ac536b65a9355f7547504318b6929359aa /src/core/window.c
parentd05c1f4677ab3dda3ad2b5964a554aec8611fdcc (diff)
downloadmarco-b57ab969c03612a0aaa1d9d8b6c0d67d13d9281f.tar.bz2
marco-b57ab969c03612a0aaa1d9d8b6c0d67d13d9281f.tar.xz
window: Parse _GTK_THEME_VARIANT property
Since version 3.0, GTK+ has support for style variants. At the moment, themes may provide a dark variant, which can be requested by applications via GtkSettings. The requested variant is exported to X11 via the _GTK_THEME_VARIANT property - support this property, in order to pick up the correct style variant in the future. https://bugzilla.gnome.org/show_bug.cgi?id=645355 NOTE: Patch is adapted for marco. upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/341d0945
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 7c8a19a9..1c4b5cc6 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -561,6 +561,7 @@ meta_window_new_with_attrs (MetaDisplay *display,
window->sm_client_id = NULL;
window->wm_client_machine = NULL;
window->startup_id = NULL;
+ window->gtk_theme_variant = NULL;
window->net_wm_pid = -1;
@@ -1229,6 +1230,7 @@ meta_window_free (MetaWindow *window,
g_free (window->title);
g_free (window->icon_name);
g_free (window->desc);
+ g_free (window->gtk_theme_variant);
g_free (window);
}