On a semi-mt device lifting slot 0 before slot 1 makes slots 1 become slot 0
(with the matching coordinate jump), potentially triggering the tap movement
threshold.

On one test we can just swap the release order, the other test we need to
disable (the _inverted version of this test tests the other order anyway).

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 test/touchpad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/touchpad.c b/test/touchpad.c
index 8077f8e..5c8f579 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -2570,8 +2570,8 @@ START_TEST(touchpad_left_handed_tapping_2fg)
 
        litest_touch_down(dev, 0, 50, 50);
        litest_touch_down(dev, 1, 70, 50);
-       litest_touch_up(dev, 0);
        litest_touch_up(dev, 1);
+       litest_touch_up(dev, 0);
 
        libinput_dispatch(li);
        litest_timeout_tap();
@@ -3356,7 +3356,7 @@ int main(int argc, char **argv) {
        litest_add("touchpad:tap", touchpad_2fg_tap_n_drag, LITEST_TOUCHPAD, 
LITEST_SINGLE_TOUCH);
        litest_add("touchpad:tap", touchpad_2fg_tap_n_drag_3fg_btntool, 
LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH|LITEST_APPLE_CLICKPAD);
        litest_add("touchpad:tap", touchpad_2fg_tap_n_drag_3fg, 
LITEST_TOUCHPAD, LITEST_SINGLE_TOUCH);
-       litest_add("touchpad:tap", touchpad_2fg_tap, LITEST_TOUCHPAD, 
LITEST_SINGLE_TOUCH);
+       litest_add("touchpad:tap", touchpad_2fg_tap, LITEST_TOUCHPAD, 
LITEST_SINGLE_TOUCH|LITEST_SEMI_MT);
        litest_add("touchpad:tap", touchpad_2fg_tap_inverted, LITEST_TOUCHPAD, 
LITEST_SINGLE_TOUCH);
        litest_add("touchpad:tap", touchpad_1fg_tap_click, 
LITEST_TOUCHPAD|LITEST_BUTTON, LITEST_CLICKPAD);
        litest_add("touchpad:tap", touchpad_2fg_tap_click, 
LITEST_TOUCHPAD|LITEST_BUTTON, LITEST_SINGLE_TOUCH|LITEST_CLICKPAD);
-- 
2.1.0

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to