diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-04-22 11:46:57 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-06-02 09:03:07 +1000 |
commit | a81051e5136aeb23ce0ed85e387ae2d9b9447faa (patch) | |
tree | 28cbe2ce1d5b647ff23badbfbe62d7a64e805415 | |
parent | 578c4e81c2606abb969972186b013f67fb152040 (diff) |
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 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>
-rw-r--r-- | src/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c index fe862155..3845c7ff 100644 --- a/src/filter.c +++ b/src/filter.c @@ -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 { |