From f1c3bd8e81b1873ca4455835fd4eba4fad1ee1b9 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Sat, 18 Jan 2014 16:30:50 +0000 Subject: [PATCH] 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. --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 2b9241c..2f8e610 100644 --- a/desktop-shell/shell.c +++ b/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); -- 2.7.4