[PATCH libinput 2/3] test: always call libinput_dispatch after moving touches

Peter Hutterer peter.hutterer at who-t.net
Sun Dec 6 20:23:09 PST 2015


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

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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



More information about the wayland-devel mailing list