touchpad: increase palm edge zones to 8%

Most modern touchpads are around 100mm wide, so this provides a ca 8mm edge
zone on each side. The extra 3mm should provide for more reliable palm
detection, a few touches happen to be just on the edge of the 5mm mark.

https://bugs.freedesktop.org/show_bug.cgi?id=101433

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 381cce8ddd)
This commit is contained in:
Peter Hutterer 2017-06-27 08:59:51 +10:00
parent 401728a157
commit d1a575c8e5

View file

@ -2278,12 +2278,12 @@ tp_init_palmdetect_edge(struct tp_dispatch *tp,
if (width < 70.0)
return;
/* palm edges are 5% of the width on each side */
mm.x = width * 0.05;
/* 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;
mm.x = width * 0.95;
mm.x = width * 0.92;
edges = evdev_device_mm_to_units(device, &mm);
tp->palm.right_edge = edges.x;
}