about summary refs log tree commit diff stats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-21 21:36:54 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-21 21:36:54 +0100
commitb3b58c08e4e15c4dbdd04bae52300d1e8effed33 (patch)
treede289dab712dc7dc058f072723d6036850f11b15 /main.c
parent204f0a340d74ff5b8bf7ed00688c14c1269da175 (diff)
downloaddwm-b3b58c08e4e15c4dbdd04bae52300d1e8effed33.tar.gz
just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
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);