shell: Don't allow maximized surfaces to be moved with touch
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Wed, 7 May 2014 11:22:23 +0000 (14:22 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 9 May 2014 20:33:36 +0000 (13:33 -0700)
Moving a maximized surface with the pointer is already not possible,
so make the behavior with touch consistent.

https://bugs.freedesktop.org/show_bug.cgi?id=78208

desktop-shell/shell.c

index ea7b3cd..db55ea9 100644 (file)
@@ -1453,7 +1453,7 @@ surface_touch_move(struct shell_surface *shsurf, struct weston_seat *seat)
        if (!shsurf)
                return -1;
 
-       if (shsurf->state.fullscreen)
+       if (shsurf->state.fullscreen || shsurf->state.maximized)
                return 0;
 
        move = malloc(sizeof *move);