summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-23 12:49:40 -0400
committerVictor Kareh <[email protected]>2019-06-05 10:49:37 -0400
commit6253f11d31e26b910c9722eeab0cb1b6df5faaa0 (patch)
treed0b52cfab88da0ca49f1377097cec2e22e63205d /src/core/window.c
parent3c8f71bcee1ad79266ff2e2ddbd679364c617164 (diff)
downloadmarco-6253f11d31e26b910c9722eeab0cb1b6df5faaa0.tar.bz2
marco-6253f11d31e26b910c9722eeab0cb1b6df5faaa0.tar.xz
window: Fix _NET_FRAME_EXTENTS to work properly
_NET_FRAME_EXTENTS should contain the difference between where a window asked to be placed, and where it is. Ideally, this should be the same as the visible extents. https://bugzilla.gnome.org/show_bug.cgi?id=659848 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/a3630d7c
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 004ac893..5c258dbf 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4645,14 +4645,17 @@ update_net_frame_extents (MetaWindow *window)
if (window->frame)
{
+ MetaFrameBorders borders;
+
+ meta_frame_calc_borders (window->frame, &borders);
/* Left */
- data[0] = window->frame->child_x;
+ data[0] = borders.visible.left;
/* Right */
- data[1] = window->frame->right_width;
+ data[1] = borders.visible.right;
/* Top */
- data[2] = window->frame->child_y;
+ data[2] = borders.visible.top;
/* Bottom */
- data[3] = window->frame->bottom_height;
+ data[3] = borders.visible.bottom;
}
meta_topic (META_DEBUG_GEOMETRY,