mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-13 04:27:56 -05:00
backend/libinput: ignore low-res scroll events
On newer versions of libinput, the event LIBINPUT_EVENT_POINTER_AXIS has been deprecated in favour of LIBINPUT_EVENT_POINTER_SCROLL_WHEEL, LIBINPUT_EVENT_POINTER_SCROLL_FINGER and LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS. Where new events are provided by the backend, ignore LIBINPUT_EVENT_POINTER_AXIS.
This commit is contained in:
parent
bc3b39bde3
commit
763cf1915b
1 changed files with 3 additions and 0 deletions
|
|
@ -257,7 +257,10 @@ void handle_libinput_event(struct wlr_libinput_backend *backend,
|
|||
handle_pointer_button(event, libinput_dev);
|
||||
break;
|
||||
case LIBINPUT_EVENT_POINTER_AXIS:
|
||||
#if !LIBINPUT_HAS_SCROLL_VALUE120
|
||||
/* This event must be ignored in favour of the SCROLL_* events */
|
||||
handle_pointer_axis(event, libinput_dev);
|
||||
#endif
|
||||
break;
|
||||
case LIBINPUT_EVENT_TOUCH_DOWN:
|
||||
handle_touch_down(event, libinput_dev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue