Skip to content

Commit

Permalink
touchpad: increase palm edge zones to 8%
Browse files Browse the repository at this point in the history
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 381cce8)
  • Loading branch information
whot committed Jul 10, 2017
1 parent 401728a commit d1a575c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evdev-mt-touchpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d1a575c

Please sign in to comment.