mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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
This commit is contained in:
parent
764569eb7a
commit
c4692b8d51
@ -5619,14 +5619,17 @@ update_net_frame_extents (MetaWindow *window)
|
|||||||
|
|
||||||
if (window->frame)
|
if (window->frame)
|
||||||
{
|
{
|
||||||
|
MetaFrameBorders borders;
|
||||||
|
|
||||||
|
meta_frame_calc_borders (window->frame, &borders);
|
||||||
/* Left */
|
/* Left */
|
||||||
data[0] = window->frame->child_x;
|
data[0] = borders.visible.left;
|
||||||
/* Right */
|
/* Right */
|
||||||
data[1] = window->frame->right_width;
|
data[1] = borders.visible.right;
|
||||||
/* Top */
|
/* Top */
|
||||||
data[2] = window->frame->child_y;
|
data[2] = borders.visible.top;
|
||||||
/* Bottom */
|
/* Bottom */
|
||||||
data[3] = window->frame->bottom_height;
|
data[3] = borders.visible.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_topic (META_DEBUG_GEOMETRY,
|
meta_topic (META_DEBUG_GEOMETRY,
|
||||||
|
Loading…
Reference in New Issue
Block a user