diff --git a/test/interactive-x11.c b/test/interactive-x11.c index bb641dd..9829cf3 100644 --- a/test/interactive-x11.c +++ b/test/interactive-x11.c @@ -276,6 +276,10 @@ loop(xcb_connection_t *conn, struct keyboard *kbd) } event = xcb_wait_for_event(conn); + if (!event) { + continue; + } + process_event(event, kbd); free(event); }