From 20d9448257f4871d3a57deab2f105d7335a64fb2 Mon Sep 17 00:00:00 2001 From: José Expósito Date: Mon, 12 Jul 2021 19:53:34 +0200 Subject: wlr_pointer_gestures: hold gestures (protocol v3) Update the pointer gestures protocol to version 3 allowing to send hold gestures to clients. --- include/wlr/types/wlr_pointer_gestures_v1.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_pointer_gestures_v1.h b/include/wlr/types/wlr_pointer_gestures_v1.h index bb250389..0d91a517 100644 --- a/include/wlr/types/wlr_pointer_gestures_v1.h +++ b/include/wlr/types/wlr_pointer_gestures_v1.h @@ -17,6 +17,7 @@ struct wlr_pointer_gestures_v1 { struct wl_global *global; struct wl_list swipes; // wl_resource_get_link struct wl_list pinches; // wl_resource_get_link + struct wl_list holds; // wl_resource_get_link struct wl_listener display_destroy; @@ -66,4 +67,15 @@ void wlr_pointer_gestures_v1_send_pinch_end( uint32_t time_msec, bool cancelled); +void wlr_pointer_gestures_v1_send_hold_begin( + struct wlr_pointer_gestures_v1 *gestures, + struct wlr_seat *seat, + uint32_t time_msec, + uint32_t fingers); +void wlr_pointer_gestures_v1_send_hold_end( + struct wlr_pointer_gestures_v1 *gestures, + struct wlr_seat *seat, + uint32_t time_msec, + bool cancelled); + #endif -- cgit v1.2.3