Commit 8b4c040b authored by Peter Hutterer's avatar Peter Hutterer

test: fix the slot swap test

This test worked because no gesture was detected in the initial movement.
If that happens though, releasing one finger triggers the gesture timeout
during which we suppress events, thus failing the test. Fix this by moving,
waiting, moving - that will definitely generate an event.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 8f8ad0e3
......@@ -5569,7 +5569,17 @@ START_TEST(touchpad_slot_swap)
litest_touch_move(dev, second, 50, 30.1);
litest_touch_move_to(dev, second, 50, 30, 50, 11, 10);
/* drain a potential scroll stop */
/* If a gesture was detected, we need to go past the gesture
* timeout to trigger events. So let's move a bit first to
* make sure it looks continuous, then wait, then move again
* to make sure we trigger events */
litest_touch_move_to(dev, second, 50, 30, 50, 21, 10);
litest_touch_move_to(dev, second, 50, 21, 50, 11, 20);
event = libinput_get_event(li);
do {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment