summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-24 12:51:12 +0200
committerinfirit <[email protected]>2014-10-24 15:40:43 +0200
commitbcbc109d2801e2c8898ebb558febe99945358d53 (patch)
tree522610e98ac400a155030ddbda9f7045495dc47e /src/core/window.c
parent0ee6f6db3f405c13c88f75760f88296560cf9fd6 (diff)
downloadmarco-bcbc109d2801e2c8898ebb558febe99945358d53.tar.bz2
marco-bcbc109d2801e2c8898ebb558febe99945358d53.tar.xz
add support for _GTK_FRAME_EXTENTS
Support for _GTK_FRAME_EXTENTS are based on mutter. Based on metacity commit: e132e2a700c4b50c93eae064d8fd1769b67baf06 By: Alberts Muktupāvels <[email protected]>
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c13
1 files changed, 12 insertions, 1 deletions
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