backend/wayland: send hold gesture events

Receive hold gesture events using a Wayland listiner and emit the
appropiate wlr_pointer signal.
This commit is contained in:
José Expósito 2021-07-12 19:51:21 +02:00 committed by Simon Ser
parent 52d2491931
commit 62e62b6942
3 changed files with 46 additions and 1 deletions

View file

@ -224,7 +224,7 @@ static void registry_global(void *data, struct wl_registry *registry,
&zxdg_decoration_manager_v1_interface, 1);
} else if (strcmp(iface, zwp_pointer_gestures_v1_interface.name) == 0) {
wl->zwp_pointer_gestures_v1 = wl_registry_bind(registry, name,
&zwp_pointer_gestures_v1_interface, 1);
&zwp_pointer_gestures_v1_interface, version < 3 ? version : 3);
} else if (strcmp(iface, wp_presentation_interface.name) == 0) {
wl->presentation = wl_registry_bind(registry, name,
&wp_presentation_interface, 1);