diff --git a/0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch b/0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch new file mode 100644 index 0000000..14eed3c --- /dev/null +++ b/0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch @@ -0,0 +1,32 @@ +From b8518f8f7c1611c58badb9d73e66d9c722849b55 Mon Sep 17 00:00:00 2001 +From: Peter Hutterer +Date: Tue, 2 Jun 2015 13:04:44 +1000 +Subject: [PATCH libinput] touchpad: reduce tap-n-drag timeout to 300ms + +The current 500ms is too long, reduce it to 300ms instead. This is still long +enough to get multiple movements but not that long that it feels like the +button is stuck. + +https://bugs.freedesktop.org/show_bug.cgi?id=90613 + +Signed-off-by: Peter Hutterer +--- + src/evdev-mt-touchpad-tap.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c +index 55b7916..b51f083 100644 +--- a/src/evdev-mt-touchpad-tap.c ++++ b/src/evdev-mt-touchpad-tap.c +@@ -37,7 +37,7 @@ + #define CASE_RETURN_STRING(a) case a: return #a + + #define DEFAULT_TAP_TIMEOUT_PERIOD 180 +-#define DEFAULT_DRAG_TIMEOUT_PERIOD 500 ++#define DEFAULT_DRAG_TIMEOUT_PERIOD 300 + #define DEFAULT_TAP_MOVE_THRESHOLD TP_MM_TO_DPI_NORMALIZED(3) + + enum tap_event { +-- +2.4.1 + diff --git a/libinput.spec b/libinput.spec index eb96b0b..e29b677 100644 --- a/libinput.spec +++ b/libinput.spec @@ -5,7 +5,7 @@ Name: libinput Version: 0.16.0 -Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} Summary: Input device library License: MIT @@ -22,6 +22,9 @@ Patch01: 0001-filter-pass-last_velocity-as-argument.patch Patch02: 0002-filter-up-the-motion-timeout-to-1-second.patch Patch03: 0003-filter-enforce-minimum-velocity.patch +#Bug 1225998 - Tap-and-drag touchpad behavior not configurable +Patch04: 0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch + BuildRequires: git BuildRequires: autoconf automake libtool pkgconfig BuildRequires: libevdev-devel @@ -97,6 +100,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete %changelog +* Tue Jun 02 2015 Peter Hutterer 0.16.0-3 +- Reduce tap-n-drag timeout (#1225998) + * Tue Jun 02 2015 Peter Hutterer 0.16.0-2 - Handle slow motions better (#1227039)