Require inputproto 2.4 to build the gesture support

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
Povilas Kanapickas
2021-09-15 19:45:49 +03:00
committed by Peter Hutterer
parent beb94333e1
commit 8588a19f63
2 changed files with 5 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ XORG_DEFAULT_OPTIONS
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.19] xproto [inputproto >= 2.2])
PKG_CHECK_MODULES(LIBINPUT, [libinput >= 1.11.0])
PKG_CHECK_MODULES(INPUTPROTO24, [inputproto >= 2.3.99.1],
[AC_DEFINE(HAVE_INPUTPROTO24, [1], [inputproto 2.4 is available])])
OLD_LIBS=$LIBS
OLD_CFLAGS=$CFLAGS
LIBS="$LIBS $LIBINPUT_LIBS"

View File

@@ -80,9 +80,11 @@
#define CAP_TABLET_PAD 0x20
#define CAP_GESTURE 0x40
#if HAVE_INPUTPROTO24
#if ABI_XINPUT_VERSION >= SET_ABI_VERSION(24, 4)
#define HAS_GESTURES
#endif
#endif
struct xf86libinput_driver {
struct libinput *libinput;