diff --git a/src/uxn11.c b/src/uxn11.c index e68300f..10f23f6 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -246,6 +246,8 @@ main(int argc, char **argv) fds[0].events = fds[1].events = POLLIN; /* main loop */ while(1) { + if(u.dev[0x0f]) + break; if(poll(fds, 2, 1000) <= 0) continue; while(XPending(display))