diff options
-rw-r--r-- | main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/main.c b/main.c index d39c913..c92f415 100644 --- a/main.c +++ b/main.c @@ -325,12 +325,11 @@ main(int argc, char *argv[]) { } drawstatus(); } - if(FD_ISSET(xfd, &rd)) - while(XPending(dpy)) { - XNextEvent(dpy, &ev); - if(handler[ev.type]) - (handler[ev.type])(&ev); /* call handler */ - } + while(XPending(dpy)) { + XNextEvent(dpy, &ev); + if(handler[ev.type]) + (handler[ev.type])(&ev); /* call handler */ + } } cleanup(); XCloseDisplay(dpy); |