tjust ignore the FD_ISSET check in main.c of xfd, just call XPending (which doe… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b3b58c08e4e15c4dbdd04bae52300d1e8effed33 | |
parent 204f0a340d74ff5b8bf7ed00688c14c1269da175 | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Wed, 21 Feb 2007 21:36:54 +0100 | |
just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does… | |
Diffstat: | |
M main.c | 11 +++++------ | |
1 file changed, 5 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/main.c b/main.c | |
t@@ -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 handl… | |
- } | |
+ while(XPending(dpy)) { | |
+ XNextEvent(dpy, &ev); | |
+ if(handler[ev.type]) | |
+ (handler[ev.type])(&ev); /* call handler */ | |
+ } | |
} | |
cleanup(); | |
XCloseDisplay(dpy); |