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 4f607d2facdf31e2a39a3d026dc9b4a516d33a76..6400772059f31a24a295c79b0b6018c02aa9e0ce 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;