|
|
@ -1436,8 +1436,6 @@ surface_touch_move(struct shell_surface *shsurf, struct weston_seat *seat) |
|
|
|
|
|
|
|
|
|
|
|
if (shsurf->state.fullscreen) |
|
|
|
if (shsurf->state.fullscreen) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
if (shsurf->grabbed) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
move = malloc(sizeof *move); |
|
|
|
move = malloc(sizeof *move); |
|
|
|
if (!move) |
|
|
|
if (!move) |
|
|
@ -1522,8 +1520,6 @@ surface_move(struct shell_surface *shsurf, struct weston_seat *seat) |
|
|
|
if (!shsurf) |
|
|
|
if (!shsurf) |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
|
|
|
|
|
|
|
|
if (shsurf->grabbed) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
if (shsurf->state.fullscreen || shsurf->state.maximized) |
|
|
|
if (shsurf->state.fullscreen || shsurf->state.maximized) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
@ -1550,6 +1546,9 @@ common_surface_move(struct wl_resource *resource, |
|
|
|
struct shell_surface *shsurf = wl_resource_get_user_data(resource); |
|
|
|
struct shell_surface *shsurf = wl_resource_get_user_data(resource); |
|
|
|
struct weston_surface *surface; |
|
|
|
struct weston_surface *surface; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (shsurf->grabbed) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (seat->pointer && |
|
|
|
if (seat->pointer && |
|
|
|
seat->pointer->focus && |
|
|
|
seat->pointer->focus && |
|
|
|
seat->pointer->button_count > 0 && |
|
|
|
seat->pointer->button_count > 0 && |
|
|
|