From bcbc109d2801e2c8898ebb558febe99945358d53 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Oct 2014 12:51:12 +0200 Subject: add support for _GTK_FRAME_EXTENTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support for _GTK_FRAME_EXTENTS are based on mutter. Based on metacity commit: e132e2a700c4b50c93eae064d8fd1769b67baf06 By: Alberts Muktupāvels --- src/core/window.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/core/window.c') diff --git a/src/core/window.c b/src/core/window.c index 694ba99e..75923e29 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4042,7 +4042,18 @@ meta_window_get_outer_rect (const MetaWindow *window, if (window->frame) *rect = window->frame->rect; else - *rect = window->rect; + { + *rect = window->rect; + + if (window->has_custom_frame_extents) + { + const GtkBorder *extents = &window->custom_frame_extents; + rect->x += extents->left; + rect->y += extents->top; + rect->width -= extents->left + extents->right; + rect->height -= extents->top + extents->bottom; + } + } } void -- cgit v1.2.1