wayland: Move the RESULT_RESIZED code to the proper place

We need to set this when we update window->rect, not when we simply
send out a configure event.
This commit is contained in:
Jasper St. Pierre 2014-04-16 16:30:11 -04:00
parent f25243e121
commit eb1c9175f9

View File

@ -139,6 +139,7 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
* update the real client size to match the buffer size.
*/
*result |= META_MOVE_RESIZE_RESULT_RESIZED;
window->rect.width = requested_rect.width;
window->rect.height = requested_rect.height;
@ -150,7 +151,6 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
if (constrained_rect.width != window->rect.width ||
constrained_rect.height != window->rect.height)
{
*result |= META_MOVE_RESIZE_RESULT_RESIZED;
meta_wayland_surface_configure_notify (window->surface,
constrained_rect.width,
constrained_rect.height);