filter: up the motion timeout to 1 second
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 22 Apr 2015 01:46:57 +0000 (11:46 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 1 Jun 2015 23:03:07 +0000 (09:03 +1000)
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 result, really slow movement does not move the cursor.

Up the timeout to 1 second instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/filter.c

index fe862155386adac80002d96b5423898592ccc799..3845c7ffd993ec3af85e54c7f24ae9ffe098d6b1 100644 (file)
@@ -78,7 +78,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 {