[PATCH libinput] touchpad: don't warn about kernel jumps on semi-mt devices

Peter Hutterer peter.hutterer at who-t.net
Fri Jun 10 00:42:53 UTC 2016


These devices are all over the place anyway, no need to spam the log, just
silently discard the jumps.

https://bugs.freedesktop.org/show_bug.cgi?id=96275

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-mt-touchpad.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 56760dc..d01461c 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -1002,10 +1002,11 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
 			tp_motion_history_reset(t);
 
 		if (tp_detect_jumps(tp, t)) {
-			log_bug_kernel(tp_libinput_context(tp),
-				       "Touch jump detected and discarded.\n"
-				       "See %stouchpad_jumping_cursor.html for details\n",
-				       HTTP_DOC_LINK);
+			if (!tp->semi_mt)
+				log_bug_kernel(tp_libinput_context(tp),
+					       "Touch jump detected and discarded.\n"
+					       "See %stouchpad_jumping_cursor.html for details\n",
+					       HTTP_DOC_LINK);
 			tp_motion_history_reset(t);
 		}
 
-- 
2.7.4



More information about the wayland-devel mailing list