mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
window: Fix meta_window_move_frame in the context of the new invisible borders
https://bugzilla.gnome.org/show_bug.cgi?id=659643
This commit is contained in:
parent
0dab6df25a
commit
c47039db82
@ -5062,11 +5062,16 @@ meta_window_move_frame (MetaWindow *window,
|
|||||||
|
|
||||||
if (window->frame)
|
if (window->frame)
|
||||||
{
|
{
|
||||||
/* offset by the distance between the origin of the window
|
MetaFrameBorders borders;
|
||||||
* and the origin of the enclosing window decorations
|
meta_frame_calc_borders (window->frame, &borders);
|
||||||
|
|
||||||
|
/* root_x_nw and root_y_nw correspond to where the top of
|
||||||
|
* the visible frame should be. Offset by the distance between
|
||||||
|
* the origin of the window and the origin of the enclosing
|
||||||
|
* window decorations.
|
||||||
*/
|
*/
|
||||||
x += window->frame->child_x;
|
x += window->frame->child_x - borders.invisible.left;
|
||||||
y += window->frame->child_y;
|
y += window->frame->child_y - borders.invisible.top;
|
||||||
}
|
}
|
||||||
meta_window_move (window, user_op, x, y);
|
meta_window_move (window, user_op, x, y);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user