[PATCH libinput 1/3] test: enable drag lock for multitap tests

Peter Hutterer peter.hutterer at who-t.net
Fri Apr 28 06:00:25 UTC 2017


Without this enabled, we stay in the single/double tap part of the state
machine and a triple tap is just a double tap followed by a single tap.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/test-touchpad-tap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/test-touchpad-tap.c b/test/test-touchpad-tap.c
index 2739f85..1c90896 100644
--- a/test/test-touchpad-tap.c
+++ b/test/test-touchpad-tap.c
@@ -125,6 +125,7 @@ START_TEST(touchpad_1fg_multitap)
 	    ntaps;
 
 	litest_enable_tap(dev->libinput_device);
+	litest_enable_drag_lock(dev->libinput_device);
 
 	litest_drain_events(li);
 
@@ -173,6 +174,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_move)
 	    ntaps;
 
 	litest_enable_tap(dev->libinput_device);
+	litest_enable_drag_lock(dev->libinput_device);
 
 	litest_drain_events(li);
 
@@ -242,6 +244,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_2fg)
 		return;
 
 	litest_enable_tap(dev->libinput_device);
+	litest_enable_drag_lock(dev->libinput_device);
 
 	litest_drain_events(li);
 
@@ -313,6 +316,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_click)
 	    ntaps;
 
 	litest_enable_tap(dev->libinput_device);
+	litest_enable_drag_lock(dev->libinput_device);
 
 	litest_drain_events(li);
 
@@ -373,6 +377,7 @@ START_TEST(touchpad_1fg_multitap_n_drag_timeout)
 	    ntaps;
 
 	litest_enable_tap(dev->libinput_device);
+	litest_enable_drag_lock(dev->libinput_device);
 
 	litest_drain_events(li);
 
-- 
2.9.3



More information about the wayland-devel mailing list