diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c index 9a82b354b..ee5f047b0 100644 --- a/src/wayland/window-wayland.c +++ b/src/wayland/window-wayland.c @@ -191,9 +191,6 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, if (constrained_rect.width != window->rect.width || constrained_rect.height != window->rect.height) { - wl_window->last_sent_width = constrained_rect.width; - wl_window->last_sent_height = constrained_rect.height; - meta_wayland_surface_configure_notify (window->surface, constrained_rect.width, constrained_rect.height, @@ -210,6 +207,13 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, } } + if (wl_window->last_sent_width != constrained_rect.width || + wl_window->last_sent_height != constrained_rect.height) + { + wl_window->last_sent_width = constrained_rect.width; + wl_window->last_sent_height = constrained_rect.height; + } + if (can_move_now) { int new_x = constrained_rect.x;