test: always call libinput_dispatch after moving touches
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 7 Dec 2015 01:39:52 +0000 (11:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 7 Dec 2015 01:57:20 +0000 (11:57 +1000)
We dont' want to fill up the event queue and cause SYN_DROPPED events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
test/litest.c

index ba3a308fc7c78088760af82fc2e272fafe890a90..cf9b534efe262c6581c4d9c747109713ce6e3730 100644 (file)
@@ -1502,8 +1502,8 @@ litest_touch_move_two_touches(struct litest_device *d,
                if (sleep_ms) {
                        libinput_dispatch(d->libinput);
                        msleep(sleep_ms);
-                       libinput_dispatch(d->libinput);
                }
+               libinput_dispatch(d->libinput);
        }
        litest_touch_move(d, 0, x0 + dx, y0 + dy);
        litest_touch_move(d, 1, x1 + dx, y1 + dy);