diff options
-rw-r--r-- | src/evdev-mt-touchpad-tap.c | 8 | ||||
-rw-r--r-- | src/evdev-mt-touchpad.c | 22 | ||||
-rw-r--r-- | src/evdev-mt-touchpad.h | 3 |
3 files changed, 0 insertions, 33 deletions
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c index 42d91297..299cd554 100644 --- a/src/evdev-mt-touchpad-tap.c +++ b/src/evdev-mt-touchpad-tap.c @@ -1261,14 +1261,6 @@ tp_tap_handle_state(struct tp_dispatch *tp, uint64_t time) t->tap.initial = t->point; tp->tap.nfingers_down++; tp_tap_handle_event(tp, t, TAP_EVENT_TOUCH, time); - - /* If we think this is a palm, pretend there's a - * motion event which will prevent tap clicks - * without requiring extra states in the FSM. - */ - if (tp_palm_tap_is_palm(tp, t)) - tp_tap_handle_event(tp, t, TAP_EVENT_MOTION, time); - } else if (t->state == TOUCH_END) { if (t->was_down) { assert(tp->tap.nfingers_down >= 1); diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index a72b9095..b29a5c56 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -882,21 +882,6 @@ tp_palm_in_edge(const struct tp_dispatch *tp, const struct tp_touch *t) return tp_palm_in_side_edge(tp, t) || tp_palm_in_top_edge(tp, t); } -bool -tp_palm_tap_is_palm(const struct tp_dispatch *tp, const struct tp_touch *t) -{ - if (t->state != TOUCH_BEGIN) - return false; - - if (!tp_palm_in_edge(tp, t)) - return false; - - evdev_log_debug(tp->device, - "palm: touch %d: palm-tap detected\n", - t->index); - return true; -} - static bool tp_palm_detect_dwt_triggered(struct tp_dispatch *tp, struct tp_touch *t, @@ -1099,13 +1084,6 @@ tp_palm_detect_edge(struct tp_dispatch *tp, if (t->state != TOUCH_BEGIN || !tp_palm_in_edge(tp, t)) return false; - /* don't detect palm in software button areas, it's - likely that legitimate touches start in the area - covered by the exclusion zone */ - if (tp->buttons.is_clickpad && - tp_button_is_inside_softbutton_area(tp, t)) - return false; - if (tp_touch_get_edge(tp, t) & EDGE_RIGHT) return false; diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h index c99b190f..bd5eab5f 100644 --- a/src/evdev-mt-touchpad.h +++ b/src/evdev-mt-touchpad.h @@ -731,9 +731,6 @@ tp_gesture_stop_twofinger_scroll(struct tp_dispatch *tp, uint64_t time); void tp_gesture_tap_timeout(struct tp_dispatch *tp, uint64_t time); -bool -tp_palm_tap_is_palm(const struct tp_dispatch *tp, const struct tp_touch *t); - void tp_clickpad_middlebutton_apply_config(struct evdev_device *device); |