shell: Don't move maximized window
authorRicardo Vieira <ricardo.vieira@tecnico.ulisboa.pt>
Sat, 18 Jan 2014 16:30:50 +0000 (16:30 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 20 Jan 2014 18:36:28 +0000 (10:36 -0800)
We'll want to ask the client to unmaximize once we get support for that in
xdg-shell, but for now, just refuse moving a maximized window.

desktop-shell/shell.c

index 2b9241c..2f8e610 100644 (file)
@@ -1475,7 +1475,7 @@ surface_move(struct shell_surface *shsurf, struct weston_seat *seat)
 
        if (shsurf->grabbed)
                return 0;
-       if (shsurf->state.fullscreen)
+       if (shsurf->state.fullscreen || shsurf->state.maximized)
                return 0;
 
        move = malloc(sizeof *move);