diff --git a/configure.ac b/configure.ac index 8942f59..00e701c 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,7 @@ 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) +PKG_CHECK_MODULES(LIBINPUT, [libinput >= 0.3.0]) # Define a configure option for an alternate input module directory AC_ARG_WITH(xorg-module-dir, diff --git a/src/libinput.c b/src/libinput.c index 495f961..9f03876 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -373,7 +373,7 @@ xf86libinput_handle_button(InputInfoPtr pInfo, struct libinput_event_pointer *ev default: /* no touchpad actually has those buttons */ return; } - is_press = (libinput_event_pointer_get_button_state(event) == LIBINPUT_POINTER_BUTTON_STATE_PRESSED); + is_press = (libinput_event_pointer_get_button_state(event) == LIBINPUT_BUTTON_STATE_PRESSED); xf86PostButtonEvent(dev, Relative, button, is_press, 0, 0); }