wlr_pointer_gestures: hold gestures (protocol v3)

Update the pointer gestures protocol to version 3 allowing to send hold
gestures to clients.
This commit is contained in:
José Expósito 2021-07-12 19:53:34 +02:00 committed by Simon Ser
parent 5f3e490c80
commit 20d9448257
2 changed files with 106 additions and 2 deletions

View file

@ -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