1
0
Fork 0

window-wayland: Correct the buffer rect for frame extents

This commit is contained in:
Jasper St. Pierre 2014-06-26 11:02:57 -04:00
parent a615f93060
commit 077606c057

View file

@ -214,8 +214,11 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
if (new_x != window->rect.x || new_y != window->rect.y)
{
*result |= META_MOVE_RESIZE_RESULT_MOVED;
window->rect.x = window->buffer_rect.x = new_x;
window->rect.y = window->buffer_rect.y = new_y;
window->rect.x = new_x;
window->rect.y = new_y;
window->buffer_rect.x = new_x - window->custom_frame_extents.left;
window->buffer_rect.y = new_y - window->custom_frame_extents.top;
}
}
}
@ -361,8 +364,6 @@ meta_window_wayland_move_resize (MetaWindow *window,
rect.width = width;
rect.height = height;
window->buffer_rect = rect;
if (rect.width != window->rect.width || rect.height != window->rect.height)
flags |= META_IS_RESIZE_ACTION;