filter: fix the mix of normalized vs device coordinates
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 2 Sep 2022 04:23:04 +0000 (14:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Sep 2022 23:03:15 +0000 (09:03 +1000)
commit87c769f3f2d7e6a542c028262e9bb23baccbf95f
tree4f6a9485f7d2e04ae301f6ff71427dffd18ed210
parent9179acd6384c3d0ec7e4c15d38e1d054a370a0ee
filter: fix the mix of normalized vs device coordinates

No functional changes, this is just for improving readability and a
leftover when some of these functions were used by multiple filters.

This filter normalizes the data first, then applies the acceleration to
the normalized values. So let's keep the data in normalized_coords
structs and only drop to device_float_coords when we have to to use the
tracker API.

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