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:
parent
0837fa9626
commit
f1c3bd8e81
@ -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…
Reference in New Issue
Block a user