We move the check for shsurf->grabbed from surface_move() and
surface_touch_move() up top common_surface_move()
if (shsurf->state.fullscreen)
return 0;
- if (shsurf->grabbed)
- return 0;
move = malloc(sizeof *move);
if (!move)
if (!shsurf)
return -1;
- if (shsurf->grabbed)
- return 0;
if (shsurf->state.fullscreen || shsurf->state.maximized)
return 0;
struct shell_surface *shsurf = wl_resource_get_user_data(resource);
struct weston_surface *surface;
+ if (shsurf->grabbed)
+ return;
+
if (seat->pointer &&
seat->pointer->focus &&
seat->pointer->button_count > 0 &&