aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2021-07-12 19:53:34 +0200
committerSimon Ser <contact@emersion.fr>2021-09-27 15:30:31 +0200
commit20d9448257f4871d3a57deab2f105d7335a64fb2 (patch)
treed2c8d03231e113a3052fb4759b0d0ce6be76fcb0 /include
parent5f3e490c8007c5fbac8bb3537a9997969c904885 (diff)
wlr_pointer_gestures: hold gestures (protocol v3)
Update the pointer gestures protocol to version 3 allowing to send hold gestures to clients.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_pointer_gestures_v1.h12
1 files changed, 12 insertions, 0 deletions
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