shell: Don't move maximized window

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.
dev
Ricardo Vieira 11 years ago committed by Kristian Høgsberg
parent 0837fa9626
commit f1c3bd8e81
  1. 2
      desktop-shell/shell.c

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

Loading…
Cancel
Save