diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-23 10:43:04 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-23 10:43:04 +1000 |
commit | a64f9df5cef7d2bc527d9db387e2c0022bd2b93c (patch) | |
tree | fd4be6c668e4afb3b87f9a43344cb2fa6b9e7fc2 /src/evdev-mt-touchpad.c | |
parent | 33d708e2de40ee26204ac5fb918a2397972b2792 (diff) |
Drop normalized_get_direction, use physical distances instead
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/evdev-mt-touchpad.c')
-rw-r--r-- | src/evdev-mt-touchpad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index fe9e642..00f088d 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -623,7 +623,7 @@ tp_palm_detect_move_out_of_edge(struct tp_dispatch *tp, if (time < t->palm.time + PALM_TIMEOUT && (t->point.x > tp->palm.left_edge && t->point.x < tp->palm.right_edge)) { delta = device_delta(t->point, t->palm.first); - dirs = normalized_get_direction(tp_normalize_delta(tp, delta)); + dirs = phys_get_direction(tp_phys_delta(tp, delta)); if ((dirs & DIRECTIONS) && !(dirs & ~DIRECTIONS)) return true; } |