From f279108ffd07616299cf9fb922de14bd1249658d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 19 May 2020 16:30:11 +1000 Subject: Bump the libinput requirement to 1.11 Released June 2018, that should be recent enough. Signed-off-by: Peter Hutterer --- configure.ac | 12 +----------- src/xf86libinput.c | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index 6026197..bf65e90 100644 --- a/configure.ac +++ b/configure.ac @@ -45,22 +45,12 @@ XORG_DEFAULT_OPTIONS # Obtain compiler/linker options from server and required extensions PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto [inputproto >= 2.2]) -PKG_CHECK_MODULES(LIBINPUT, [libinput >= 1.7.0]) +PKG_CHECK_MODULES(LIBINPUT, [libinput >= 1.11.0]) OLD_LIBS=$LIBS OLD_CFLAGS=$CFLAGS LIBS="$LIBS $LIBINPUT_LIBS" CFLAGS="$CFLAGS $LIBINPUT_CFLAGS" -AC_MSG_CHECKING([if libinput_device_touch_get_touch_count is available]) -AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[#include ]], - [[libinput_device_touch_get_touch_count(NULL)]])], - [AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE_LIBINPUT_TOUCH_COUNT, [1], - [libinput_device_touch_get_touch_count() is available]) - [libinput_have_touch_count=yes]], - [AC_MSG_RESULT([no]) - [libinput_have_touch_count=no]]) AC_MSG_CHECKING([if libinput_device_config_scroll_get_button_lock is available]) AC_LINK_IFELSE( diff --git a/src/xf86libinput.c b/src/xf86libinput.c index d6da6e3..28b376c 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -1104,11 +1104,9 @@ xf86libinput_init_touch(InputInfoPtr pInfo) XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_Y), min, max, res * 1000, 0, res * 1000, Absolute); -#if HAVE_LIBINPUT_TOUCH_COUNT ntouches = libinput_device_touch_get_touch_count(device); if (ntouches == 0) /* unknown - mtdev */ ntouches = TOUCH_MAX_SLOTS; -#endif InitTouchClassDeviceStruct(dev, ntouches, XIDirectTouch, 2); } -- cgit v1.2.3