From 865100310c20dc2b732cf2222887bf58e70f3540 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 18 Jun 2019 20:52:42 +1000 Subject: [PATCH] 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 --- test/test-touchpad-buttons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-touchpad-buttons.c b/test/test-touchpad-buttons.c index cecd4d2..73c0a60 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); -- 2.7.4