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:
José Expósito 2021-09-20 19:46:53 +02:00
parent bc3b39bde3
commit 763cf1915b

View file

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