From 7b83ae433f9f373e211020b92e4a2877b413d8d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 29 Apr 2014 14:50:25 -0700 Subject: [PATCH] desktop-shell: Reject resize if we're already grabbed This rejects resizing a window that's currently being moved. This can be done using a touch screen and a pointer or just two seats. --- desktop-shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 9340b4a..79bd65c 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1742,6 +1742,9 @@ common_surface_resize(struct wl_resource *resource, if (shsurf->state.fullscreen) return; + if (shsurf->grabbed) + return; + if (seat->pointer->button_count == 0 || seat->pointer->grab_serial != serial || seat->pointer->focus == NULL) -- 2.7.4