filter: don't normalize the const filter approach
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Sep 2022 23:35:23 +0000 (09:35 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Sep 2022 23:03:15 +0000 (09:03 +1000)
commitcef91f5b43ddcf01875d16d2e69180f4b71c5bf5
treef5843e7ecdab53b89cba1a11ad4ae71b8bb6779c
parentfc1a28951a4d0cd37150ca7a997aa9227b4d6061
filter: don't normalize the const filter approach

The filter vs const filter is supposed to be for accelerated vs
non-accelerated motion (e.g. pointer motion vs scrolling) - in both
cases the returned value is supposed to be in the same coordinate
system, just once with an extra accel factor applied.

This was broken in the flat and low-dpi profiles: in both of those the
accelerated filter does *not* normalize, it merely applies the fixed/adaptive factor.
The constant filter normalized however. The result was that on e.g. a
5000dpi mouse the constant motion was 5 times slower than the
accelerated motion, even with a factor of 1.

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