diff options
author | José Expósito <jose.exposito89@gmail.com> | 2021-07-12 19:50:44 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-09-27 15:30:31 +0200 |
commit | 52d249193190c44d1f1d07c36ae57f1dfa16a9e0 (patch) | |
tree | c9c7db9f7d807dbcce33334bdf7fac17e2237f97 /backend/libinput/events.c | |
parent | 95970b361960e5b8786eaa608d66f18b15d86efb (diff) |
backend/libinput: send hold gesture events
Receive hold gesture events from libinput and emit the appropiate
wlr_pointer signal.
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r-- | backend/libinput/events.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c index f149b2f1..82883779 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -316,6 +316,14 @@ void handle_libinput_event(struct wlr_libinput_backend *backend, case LIBINPUT_EVENT_GESTURE_PINCH_END: handle_pointer_pinch_end(event, libinput_dev); break; +#if LIBINPUT_HAS_HOLD_GESTURES + case LIBINPUT_EVENT_GESTURE_HOLD_BEGIN: + handle_pointer_hold_begin(event, libinput_dev); + break; + case LIBINPUT_EVENT_GESTURE_HOLD_END: + handle_pointer_hold_end(event, libinput_dev); + break; +#endif default: wlr_log(WLR_DEBUG, "Unknown libinput event %d", event_type); break; |