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.
dev
Kristian Høgsberg 11 years ago
parent d0b40ed451
commit 7b83ae433f
  1. 3
      desktop-shell/shell.c

@ -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…
Cancel
Save