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:
Kristian Høgsberg 2014-04-29 14:50:25 -07:00
parent d0b40ed451
commit 7b83ae433f

View file

@ -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)