Commit ed52002c authored by Peter Hutterer's avatar Peter Hutterer

touchpad: cap the edge palm detection zones at 8mm

The main purpose of the edge zone is to detect palms in the area where we
cannot assume a full finger size and thus cannot use any other palm detection
mechanism. 8mm should be large enough that a finger should be detected based
on other properties (size, pressure, ...). Peter Hutterer's avatarPeter Hutterer <>
parent d27c464a
......@@ -2647,11 +2647,11 @@ tp_init_palmdetect_edge(struct tp_dispatch *tp,
/* palm edges are 8% of the width on each side */
mm.x = width * 0.08;
mm.x = min(8, width * 0.08);
edges = evdev_device_mm_to_units(device, &mm);
tp->palm.left_edge = edges.x;
mm.x = width * 0.92;
mm.x = width - min(8, width * 0.08);
edges = evdev_device_mm_to_units(device, &mm);
tp->palm.right_edge = edges.x;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment