From d27c464a49fe5df5e9cdb69b5ff0df28e6d899f3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 25 Oct 2017 14:18:17 +1000 Subject: [PATCH] Revert "touchpad: cap the edge palm detection zones at 8mm" This patch only adjusted the left edge, not the right edge which was still on 8% This reverts commit 3e9e0e2eb18f0eae5ffe2be756903d92b8b88f75. --- src/evdev-mt-touchpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 2ef6ae45..81a56a05 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -2646,8 +2646,8 @@ tp_init_palmdetect_edge(struct tp_dispatch *tp, if (width < 70.0) return; - /* palm edges are 8% of the width on each side up to a max of 8mm */ - mm.x = min(8, width * 0.08); + /* palm edges are 8% of the width on each side */ + mm.x = width * 0.08; edges = evdev_device_mm_to_units(device, &mm); tp->palm.left_edge = edges.x;