JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the...
[dwm.git] / main.c
diff --git a/main.c b/main.c
index d39c913..c92f415 100644 (file)
--- 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);