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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-09-28 14:10:48 +10:00
parent d3595908e5
commit 72560e031b

View file

@ -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;