Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
204f0a3
)
just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the...
author
Anselm R. Garbe <
[email protected]
>
Wed, 21 Feb 2007 20:36:54 +0000
(21:36 +0100)
committer
Anselm R. Garbe <
[email protected]
>
Wed, 21 Feb 2007 20:36:54 +0000
(21:36 +0100)
main.c
diff
|
blob
|
history
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);