changeset:   812:8992a53a0d6a
tag:         tip
user:        Anselm R. Garbe <arg_AT_suckless.org>
date:        Wed Feb 21 21:36:54 2007 +0100
summary:     just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
diff -r 0d51a30b5cea -r 8992a53a0d6a main.c
--- a/main.c	Wed Feb 21 17:00:06 2007 +0100
+++ b/main.c	Wed Feb 21 21:36:54 2007 +0100
@@ -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);
Received on Wed Feb 21 2007 - 21:39:27 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:39 UTC