whot pushed to libinput (f22). "Reduce tap-n-drag timeout (#1225998)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Jun 2 03:47:47 UTC 2015
From 7427601864a6e0bc862b3433f5e224f269557457 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue, 2 Jun 2015 13:46:01 +1000
Subject: Reduce tap-n-drag timeout (#1225998)
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 <peter.hutterer at who-t.net>
+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 <peter.hutterer at who-t.net>
+---
+ 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 <peter.hutterer at redhat.com> 0.16.0-3
+- Reduce tap-n-drag timeout (#1225998)
+
* Tue Jun 02 2015 Peter Hutterer <peter.hutterer at redhat.com> 0.16.0-2
- Handle slow motions better (#1227039)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/libinput.git/commit/?h=f22&id=7427601864a6e0bc862b3433f5e224f269557457
More information about the scm-commits
mailing list