|
|
@ -671,6 +671,9 @@ move_binding(struct wl_input_device *device, uint32_t time, |
|
|
|
struct wlsc_surface *surface = |
|
|
|
struct wlsc_surface *surface = |
|
|
|
(struct wlsc_surface *) device->pointer_focus; |
|
|
|
(struct wlsc_surface *) device->pointer_focus; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (surface == NULL) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
shell_move(NULL, |
|
|
|
shell_move(NULL, |
|
|
|
(struct wl_shell *) &compositor->shell, |
|
|
|
(struct wl_shell *) &compositor->shell, |
|
|
|
&surface->surface, device, time); |
|
|
|
&surface->surface, device, time); |
|
|
@ -686,6 +689,9 @@ resize_binding(struct wl_input_device *device, uint32_t time, |
|
|
|
uint32_t edges = 0; |
|
|
|
uint32_t edges = 0; |
|
|
|
int32_t x, y; |
|
|
|
int32_t x, y; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (surface == NULL) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
x = device->grab_x - surface->x; |
|
|
|
x = device->grab_x - surface->x; |
|
|
|
y = device->grab_y - surface->y; |
|
|
|
y = device->grab_y - surface->y; |
|
|
|
|
|
|
|
|
|
|
|