From 72560e031b9ca2ba03be9930e845d3dfcd52c136 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 28 Sep 2018 14:10:48 +1000 Subject: [PATCH] fallback: force the palm state to PALM_NONE on touch begin If we don't have tool-based palm detection, make sure our touch is labelled as "not palm" during touch down. Otherwise that slot remains on palm forever if it gets tagged as palm through some other means. This currently has no effect, nothing in the code would label the touch as palm. This is prep work for better touch arbitration. Signed-off-by: Peter Hutterer --- src/evdev-fallback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c index 4f607d2f..64007720 100644 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback.c @@ -621,6 +621,8 @@ fallback_process_touch(struct fallback_dispatch *dispatch, slot->palm_state = PALM_NONE; break; } + } else { + slot->palm_state = PALM_NONE; } } else { dispatch->pending_event |= EVDEV_ABSOLUTE_MT;