diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2011-09-22 13:42:01 -0400 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-01-19 15:18:45 +0200 |
commit | b0481cf9bf3d8a0b094571120c0a164d77cab673 (patch) | |
tree | a370cb372ff2c0febef9909260f5a4c2fd0d1de8 | |
parent | 7a8372c1e43d63add04891a6eb6f4d0b7b956dae (diff) | |
download | metacity-b0481cf9bf3d8a0b094571120c0a164d77cab673.tar.gz |
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
-rw-r--r-- | src/core/window.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/window.c b/src/core/window.c index 2a2efde4..e394d578 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4520,14 +4520,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, |