From: Peter Hutterer Date: Fri, 28 Sep 2018 04:10:48 +0000 (+1000) Subject: fallback: force the palm state to PALM_NONE on touch begin X-Git-Tag: 1.12.901~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72560e031b9ca2ba03be9930e845d3dfcd52c136;p=platform%2Fupstream%2Flibinput.git 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 --- 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;