shell: Don't allow maximized surfaces to be moved with touch

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
This commit is contained in:
Ander Conselvan de Oliveira 2014-05-07 14:22:23 +03:00 committed by Kristian Høgsberg
parent 6e56ab41d9
commit 6d43f045e3

View 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);