summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-06-18 20:52:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-06-19 11:08:40 +1000
commit865100310c20dc2b732cf2222887bf58e70f3540 (patch)
tree362b2888f525b9a49ce02f30f7c26f88fd5b4811 /test
parent3c84d5c750707c8cdbface13589412bd3372f3f1 (diff)
downloadlibinput-865100310c20dc2b732cf2222887bf58e70f3540.tar.gz
test: don't form a pinch gesture for the clickfinger distance test
If the fingers are in the position in the current code, that's not a 3fg click, that's a pinch. Let's use something more realistic. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/test-touchpad-buttons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-touchpad-buttons.c b/test/test-touchpad-buttons.c
index cecd4d28..73c0a60f 100644
--- a/test/test-touchpad-buttons.c
+++ b/test/test-touchpad-buttons.c
@@ -497,7 +497,7 @@ START_TEST(touchpad_3fg_clickfinger_distance)
litest_drain_events(li);
- litest_touch_down(dev, 0, 90, 70);
+ litest_touch_down(dev, 0, 90, 20);
litest_touch_down(dev, 1, 10, 15);
litest_touch_down(dev, 2, 10, 15);
@@ -530,7 +530,7 @@ START_TEST(touchpad_3fg_clickfinger_distance_btntool)
litest_drain_events(li);
- litest_touch_down(dev, 0, 90, 90);
+ litest_touch_down(dev, 0, 90, 15);
litest_touch_down(dev, 1, 10, 15);
libinput_dispatch(li);
litest_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, 0);