backend/libinput: check bus type before setting tablet USB IDs

References: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/977
This commit is contained in:
Simon Ser 2024-02-29 12:29:28 +01:00
parent edbf8bf2ce
commit 94dbb3cfb5
2 changed files with 10 additions and 2 deletions

View file

@ -31,3 +31,4 @@ wlr_deps += libinput
# libinput hold gestures and high resolution scroll are available since 1.19.0
internal_config.set10('HAVE_LIBINPUT_HOLD_GESTURES', libinput.version().version_compare('>=1.19.0'))
internal_config.set10('HAVE_LIBINPUT_SCROLL_VALUE120', libinput.version().version_compare('>=1.19.0'))
internal_config.set10('HAVE_LIBINPUT_BUSTYPE', libinput.version().version_compare('>=1.26.0'))