just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
Anselm R. Garbe arg@suckless.org
Wed, 21 Feb 2007 21:36:54 +0100
1 files changed,
5 insertions(+),
6 deletions(-)
jump to
M
main.c
→
main.c
@@ -325,12 +325,11 @@ strncpy(stext, p + 1, sizeof stext);
} 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);