mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 19:18:13 +02:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue