summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-06-13 14:00:47 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2016-06-13 14:03:44 +0200
commitb2bf30165f2f69709cf4817bbce55c29688cf2fd (patch)
tree5d97e4d71b0cf25423616bdad1c39bcf2e453041
parente75d9a5237e325a1419c01c2cd294f2fbeac2fc4 (diff)
downloadmutter-b2bf30165f2f69709cf4817bbce55c29688cf2fd.tar.gz
wayland: Mark pending moved as moved
The result flag needs to be marked as moved even for pending moves, otherwise the window's unconstrained_rect doesn't get updated in meta_window_move_resize_internal() and the anchor grab is wrong. https://bugzilla.gnome.org/show_bug.cgi?id=764180
-rw-r--r--src/wayland/meta-window-wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c
index b360f9170..5181829b5 100644
--- a/src/wayland/meta-window-wayland.c
+++ b/src/wayland/meta-window-wayland.c
@@ -310,6 +310,7 @@ 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;
wl_window->has_pending_move = TRUE;
wl_window->pending_move_x = new_x;
wl_window->pending_move_y = new_y;