mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
test: avoid a pointer jump when testing for the slot continuation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8b4c040bfb
commit
1796fd92e7
1 changed files with 7 additions and 3 deletions
|
|
@ -5553,14 +5553,18 @@ START_TEST(touchpad_slot_swap)
|
|||
litest_drain_events(li);
|
||||
|
||||
for (first = 0; first <= 1; first++) {
|
||||
const double start[2][2] = {{50, 50}, {70, 70}};
|
||||
second = 1 - first;
|
||||
|
||||
litest_touch_down(dev, 0, 50, 50);
|
||||
litest_touch_down(dev, 0, start[0][0], start[0][1]);
|
||||
libinput_dispatch(li);
|
||||
litest_touch_down(dev, 1, 70, 70);
|
||||
litest_touch_down(dev, 1, start[1][0], start[1][1]);
|
||||
libinput_dispatch(li);
|
||||
|
||||
litest_touch_move_to(dev, first, 50, 50, 50, 30, 10);
|
||||
litest_touch_move_to(dev, first,
|
||||
start[first][0],
|
||||
start[first][1],
|
||||
50, 30, 10);
|
||||
litest_drain_events(li);
|
||||
|
||||
/* release touch 0, continue other slot with 0's coords */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue