shell: Don't move fullscreen surfaces
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 28 Jun 2012 15:08:06 +0000 (18:08 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 28 Jun 2012 18:14:01 +0000 (14:14 -0400)
src/shell.c

index b477bbe..4d09c5b 100644 (file)
@@ -1014,6 +1014,9 @@ surface_move(struct shell_surface *shsurf, struct weston_seat *ws)
        if (!shsurf)
                return -1;
 
+       if (shsurf->type == SHELL_SURFACE_FULLSCREEN)
+               return 0;
+
        move = malloc(sizeof *move);
        if (!move)
                return -1;