From b0a9363a46746a942841ce79766a0d0f96d51d45 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 13:38:37 -0400 Subject: 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 --- src/core/core.c | 3 +++ src/include/core.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/core/core.c b/src/core/core.c index 0e98959f..5363df9c 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; diff --git a/src/include/core.h b/src/include/core.h index c95d0fce..54306847 100644 --- a/src/include/core.h +++ b/src/include/core.h @@ -48,6 +48,7 @@ typedef enum META_CORE_GET_FRAME_Y, META_CORE_GET_FRAME_WIDTH, META_CORE_GET_FRAME_HEIGHT, + META_CORE_GET_THEME_VARIANT, META_CORE_GET_SCREEN_WIDTH, META_CORE_GET_SCREEN_HEIGHT, } MetaCoreGetType; -- cgit v1.2.1