diff options
author | satrmb <10471-satrmb_true-email-is-private_contact-via-web@gitlab.freedesktop.org> | 2020-06-24 00:20:57 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-25 06:01:28 +0000 |
commit | 0e569077fe7482a8399bce1c21a647bfee3f7835 (patch) | |
tree | 49cf8513bc7c204a7604023953ac7f8e17dae8c0 /test/test-touchpad-tap.c | |
parent | 5e6d03ff19af810654d6bd1916bf89b979b5b42c (diff) | |
download | libinput-0e569077fe7482a8399bce1c21a647bfee3f7835.tar.gz |
touchpad: allow tap-and-drag for two-finger and three-finger taps
This commit duplicates the tap states responsible for tap-and drag (TAPPED
and all DRAGGING* states) to cover two-finger and three-finger taps;
the code for the new states is shared with the existing machinery for
one-finger tap-and-drag.
Signed-off-by: satrmb <10471-satrmb@users.noreply.gitlab.freedesktop.org>
Diffstat (limited to 'test/test-touchpad-tap.c')
-rw-r--r-- | test/test-touchpad-tap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-touchpad-tap.c b/test/test-touchpad-tap.c index 74e03ccb..0b6aa3ea 100644 --- a/test/test-touchpad-tap.c +++ b/test/test-touchpad-tap.c @@ -1049,6 +1049,8 @@ START_TEST(touchpad_2fg_tap) litest_touch_up(dev, 1); libinput_dispatch(li); + litest_timeout_tap(); + libinput_dispatch(li); ev = libinput_get_event(li); ptrev = litest_is_button_event(ev, @@ -1101,6 +1103,8 @@ START_TEST(touchpad_2fg_tap_inverted) litest_touch_up(dev, 0); libinput_dispatch(li); + litest_timeout_tap(); + libinput_dispatch(li); ev = libinput_get_event(li); ptrev = litest_is_button_event(ev, @@ -1558,6 +1562,8 @@ START_TEST(touchpad_3fg_tap) litest_touch_up(dev, (i + 0) % 3); libinput_dispatch(li); + litest_timeout_tap(); + libinput_dispatch(li); ev = libinput_get_event(li); ptrev = litest_is_button_event(ev, @@ -1610,6 +1616,8 @@ START_TEST(touchpad_3fg_tap_tap_again) litest_touch_up(dev, 2); libinput_dispatch(li); + litest_timeout_tap(); + libinput_dispatch(li); for (i = 0; i < 2; i++) { ev = libinput_get_event(li); |