|
|
@ -927,6 +927,7 @@ static void handle_pointer_pinch_begin(struct wl_listener *listener, void *data)
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
listener, cursor, pinch_begin);
|
|
|
|
listener, cursor, pinch_begin);
|
|
|
|
struct wlr_event_pointer_pinch_begin *event = data;
|
|
|
|
struct wlr_event_pointer_pinch_begin *event = data;
|
|
|
|
|
|
|
|
cursor_handle_activity_from_device(cursor, event->device);
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_begin(
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_begin(
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
event->time_msec, event->fingers);
|
|
|
|
event->time_msec, event->fingers);
|
|
|
@ -936,6 +937,7 @@ static void handle_pointer_pinch_update(struct wl_listener *listener, void *data
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
listener, cursor, pinch_update);
|
|
|
|
listener, cursor, pinch_update);
|
|
|
|
struct wlr_event_pointer_pinch_update *event = data;
|
|
|
|
struct wlr_event_pointer_pinch_update *event = data;
|
|
|
|
|
|
|
|
cursor_handle_activity_from_device(cursor, event->device);
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_update(
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_update(
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
event->time_msec, event->dx, event->dy,
|
|
|
|
event->time_msec, event->dx, event->dy,
|
|
|
@ -946,6 +948,7 @@ static void handle_pointer_pinch_end(struct wl_listener *listener, void *data) {
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
listener, cursor, pinch_end);
|
|
|
|
listener, cursor, pinch_end);
|
|
|
|
struct wlr_event_pointer_pinch_end *event = data;
|
|
|
|
struct wlr_event_pointer_pinch_end *event = data;
|
|
|
|
|
|
|
|
cursor_handle_activity_from_device(cursor, event->device);
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_end(
|
|
|
|
wlr_pointer_gestures_v1_send_pinch_end(
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
event->time_msec, event->cancelled);
|
|
|
|
event->time_msec, event->cancelled);
|
|
|
@ -964,6 +967,7 @@ static void handle_pointer_swipe_update(struct wl_listener *listener, void *data
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
listener, cursor, swipe_update);
|
|
|
|
listener, cursor, swipe_update);
|
|
|
|
struct wlr_event_pointer_swipe_update *event = data;
|
|
|
|
struct wlr_event_pointer_swipe_update *event = data;
|
|
|
|
|
|
|
|
cursor_handle_activity_from_device(cursor, event->device);
|
|
|
|
wlr_pointer_gestures_v1_send_swipe_update(
|
|
|
|
wlr_pointer_gestures_v1_send_swipe_update(
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
event->time_msec, event->dx, event->dy);
|
|
|
|
event->time_msec, event->dx, event->dy);
|
|
|
@ -973,6 +977,7 @@ static void handle_pointer_swipe_end(struct wl_listener *listener, void *data) {
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
struct sway_cursor *cursor = wl_container_of(
|
|
|
|
listener, cursor, swipe_end);
|
|
|
|
listener, cursor, swipe_end);
|
|
|
|
struct wlr_event_pointer_swipe_end *event = data;
|
|
|
|
struct wlr_event_pointer_swipe_end *event = data;
|
|
|
|
|
|
|
|
cursor_handle_activity_from_device(cursor, event->device);
|
|
|
|
wlr_pointer_gestures_v1_send_swipe_end(
|
|
|
|
wlr_pointer_gestures_v1_send_swipe_end(
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
cursor->pointer_gestures, cursor->seat->wlr_seat,
|
|
|
|
event->time_msec, event->cancelled);
|
|
|
|
event->time_msec, event->cancelled);
|
|
|
|