fallback: force the palm state to PALM_NONE on touch begin
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 28 Sep 2018 04:10:48 +0000 (14:10 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Jan 2019 05:17:28 +0000 (05:17 +0000)
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>
src/evdev-fallback.c

index 4f607d2..6400772 100644 (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;