summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-12-08 12:35:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-12-08 12:59:58 +1000
commit61bdc05fb0f84303f97daaba6ae6b49c976dbfbf (patch)
treeaf9e1d73c6d4b058f62f8eaea7d5b3cb011c3936 /test
parent1c8636923b7d8245a5f55dfbfa191c0129ad4414 (diff)
tablet: set the tip-up pressure threshold to 1%
Some pens keep sending small amounts of pressure even when the tip is up. This isn't always a sign of the pens worn out, it also happens on the new Pro Pen 3D models. The X driver uses a default threshould of ~1.3% to paper over this, let's do the same with a 1% threshold. This threshold only applies to pens that don't already have a pressure offset anyway. https://bugs.freedesktop.org/show_bug.cgi?id=103086 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/test-tablet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-tablet.c b/test/test-tablet.c
index bc089389..421e82c3 100644
--- a/test/test-tablet.c
+++ b/test/test-tablet.c
@@ -3458,7 +3458,7 @@ START_TEST(tablet_pressure_range)
litest_drain_events(li);
libinput_dispatch(li);
- for (pressure = 1; pressure <= 100; pressure += 10) {
+ for (pressure = 10; pressure <= 100; pressure += 10) {
litest_axis_set_value(axes, ABS_PRESSURE, pressure);
litest_tablet_motion(dev, 70, 70, axes);
libinput_dispatch(li);