We dont' want to fill up the event queue and cause SYN_DROPPED events.

Signed-off-by: Peter Hutterer <[email protected]>
---
 test/litest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/litest.c b/test/litest.c
index ba3a308..cf9b534 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -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);
-- 
2.5.0

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to