From fa3c655b950210f7ec486852c90724b0df6adc8f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 22 Apr 2015 11:46:57 +1000 Subject: [PATCH libinput] filter: up the motion timeout to 1 second This timeout defines how far back in the events we search for velocity calculations. For really slow movements, 300ms is not enough. It causes the velocity to be 0 -> accel factor of 0 -> no movement. As a reusult, really slow movement does not move the cursor. Up the timeout to 1 second instead. http://bugs.freedesktop.org/show_bug.cgi?id=90086 Signed-off-by: Peter Hutterer --- src/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index 962d74d..b446221 100644 --- a/src/filter.c +++ b/src/filter.c @@ -76,7 +76,7 @@ filter_get_speed(struct motion_filter *filter) */ #define MAX_VELOCITY_DIFF 1.0 /* units/ms */ -#define MOTION_TIMEOUT 300 /* (ms) */ +#define MOTION_TIMEOUT 1000 /* (ms) */ #define NUM_POINTER_TRACKERS 16 struct pointer_tracker { -- 2.3.5