Commit b3b58c0

Anselm R. Garbe <arg@suckless.org>
2007-02-21 15:36:54
just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
1 parent 204f0a3
Changed files (1)
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);