filter: don't normalize the speed again in the default mouse filter
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Sep 2022 23:46:54 +0000 (09:46 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Sep 2022 23:03:15 +0000 (09:03 +1000)
commit49707691c8ee8d167ef2dca558e31b5f6cf6d68c
tree383195668395e50c9ec3a70992c9ae7b06da9a63
parentf87fffd1937062d8e67ec77ff86f7b2b1495027a
filter: don't normalize the speed again in the default mouse filter

The first thing this filter does is normalize the coordinates to
1000dpi, i.e. all other values are in normalized coordinates.

By normalizing the speed again we get an invalid value, effectively
stretching or compressing the acceleration curve. e.g. on a 5000dpi
mouse the estimated speed was 1/5 of the real speed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/filter-mouse.c