[PATCH libinput 2/3] filter: fix x230 acceleration function for the ms→us change
Peter Hutterer
peter.hutterer at who-t.net
Thu Jul 30 23:19:02 PDT 2015
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/filter.c b/src/filter.c
index f8f9409..54ae397 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -493,8 +493,8 @@ touchpad_lenovo_x230_accel_profile(struct motion_filter *filter,
speed_in *= TP_MAGIC_SLOWDOWN / TP_MAGIC_LOW_RES_FACTOR;
- s1 = min(1, speed_in * 5);
- s2 = 1 + (speed_in - threshold) * incline;
+ s1 = min(1, speed_in * 5 * 1000.0);
+ s2 = 1 + (speed_in * 1000.0 - threshold * 1000.0) * incline;
speed_out = min(max_accel, s2 > 1 ? s2 : s1);
--
2.4.3
More information about the wayland-devel
mailing list