diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c index ea0674bc8..8e13cc2bd 100644 --- a/src/wayland/window-wayland.c +++ b/src/wayland/window-wayland.c @@ -120,6 +120,7 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, MetaMoveResizeResultFlags *result) { gboolean should_move = FALSE; + gboolean is_wayland_resize = FALSE; g_assert (window->frame == NULL); @@ -133,7 +134,9 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, * it can be for maximized or fullscreen. */ - if (flags & META_IS_WAYLAND_RESIZE) + is_wayland_resize = (flags & META_IS_WAYLAND_RESIZE); + + if (is_wayland_resize) { /* This is a call to wl_surface_commit(), ignore the constrained_rect and * update the real client size to match the buffer size. @@ -155,7 +158,7 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, constrained_rect.width, constrained_rect.height); } - else + else if (!is_wayland_resize) { /* We're just moving the window, so we don't need to wait for a configure * and then ack to simply move the window. */