projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
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
<arg@suckless.org>
Wed, 21 Feb 2007 20:36:54 +0000
(21:36 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Wed, 21 Feb 2007 20:36:54 +0000
(21:36 +0100)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index d39c913ae363373676a9a8787237074385fbbc18..c92f41598cbac5eb57b16c62dd4b5f09dd29bbf8 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);