From e5a1aee694e9256d88326e73a270268ab708c329 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 9 Apr 2014 17:39:39 +0300 Subject: [PATCH] shell: Allow unresponsive surfaces to be moved again Commit c85f1d45 caused the move of an unresponsive surface to be no longer possible, since the grabbed flag would prevent the move grab to start while the busy grab was still active. --- desktop-shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 466ea9378..ba5f2f3ce 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1807,6 +1807,9 @@ set_busy_cursor(struct shell_surface *shsurf, struct weston_pointer *pointer) shell_grab_start(grab, &busy_cursor_grab_interface, shsurf, pointer, DESKTOP_SHELL_CURSOR_BUSY); + /* Mark the shsurf as ungrabbed so that button binding is able + * to move it. */ + shsurf->grabbed = 0; } static void