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.
This commit is contained in:
Ricardo Vieira
2014-01-18 16:30:50 +00:00
committed by Kristian Høgsberg
parent 0837fa9626
commit f1c3bd8e81
+1 -1
View File
@@ -1475,7 +1475,7 @@ surface_move(struct shell_surface *shsurf, struct weston_seat *seat)
if (shsurf->grabbed) if (shsurf->grabbed)
return 0; return 0;
if (shsurf->state.fullscreen) if (shsurf->state.fullscreen || shsurf->state.maximized)
return 0; return 0;
move = malloc(sizeof *move); move = malloc(sizeof *move);