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:
@@ -1742,6 +1742,9 @@ common_surface_resize(struct wl_resource *resource,
|
|||||||
if (shsurf->state.fullscreen)
|
if (shsurf->state.fullscreen)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (shsurf->grabbed)
|
||||||
|
return;
|
||||||
|
|
||||||
if (seat->pointer->button_count == 0 ||
|
if (seat->pointer->button_count == 0 ||
|
||||||
seat->pointer->grab_serial != serial ||
|
seat->pointer->grab_serial != serial ||
|
||||||
seat->pointer->focus == NULL)
|
seat->pointer->focus == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user