desktop-shell: Reject resize if we're already grabbed
This rejects resizing a window that's currently being moved. This can be done using a touch screen and a pointer or just two seats.
This commit is contained in:
parent
d0b40ed451
commit
7b83ae433f
@ -1742,6 +1742,9 @@ common_surface_resize(struct wl_resource *resource,
|
||||
if (shsurf->state.fullscreen)
|
||||
return;
|
||||
|
||||
if (shsurf->grabbed)
|
||||
return;
|
||||
|
||||
if (seat->pointer->button_count == 0 ||
|
||||
seat->pointer->grab_serial != serial ||
|
||||
seat->pointer->focus == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user