diff options
author | Victor Kareh <[email protected]> | 2019-05-21 13:38:37 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-16 18:12:44 +0200 |
commit | e5cc84c337a856517a81a56d7a0fdbf40a1a90e5 (patch) | |
tree | 0ebf92e2d4a8abc89fe0f4de0fbbe3264b0e2288 /src/core | |
parent | 73f74047e14e0942c403ea59284ace877680bbf9 (diff) | |
download | marco-e5cc84c337a856517a81a56d7a0fdbf40a1a90e5.tar.bz2 marco-e5cc84c337a856517a81a56d7a0fdbf40a1a90e5.tar.xz |
core: Allow retrieving the theme variant via core_get()
To associate frames with the correct style variant, the UI will
need access to the window's theme variant property.
https://bugzilla.gnome.org/show_bug.cgi?id=645355
upstream commit:
https://gitlab.gnome.org/GNOME/metacity/commit/5c7403cc
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c index 535a3820..85b7d5cb 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -200,6 +200,9 @@ meta_core_get (Display *xdisplay, case META_CORE_GET_FRAME_HEIGHT: *((gint*)answer) = window->frame->rect.height; break; + case META_CORE_GET_THEME_VARIANT: + *((char**)answer) = window->gtk_theme_variant; + break; case META_CORE_GET_SCREEN_WIDTH: *((gint*)answer) = window->screen->rect.width; break; |