just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
b3b58c08
1 file(s) · +5 −6
| 325 | 325 | } |
|
| 326 | 326 | drawstatus(); |
|
| 327 | 327 | } |
|
| 328 | - | if(FD_ISSET(xfd, &rd)) |
|
| 329 | - | while(XPending(dpy)) { |
|
| 330 | - | XNextEvent(dpy, &ev); |
|
| 331 | - | if(handler[ev.type]) |
|
| 332 | - | (handler[ev.type])(&ev); /* call handler */ |
|
| 333 | - | } |
|
| 328 | + | while(XPending(dpy)) { |
|
| 329 | + | XNextEvent(dpy, &ev); |
|
| 330 | + | if(handler[ev.type]) |
|
| 331 | + | (handler[ev.type])(&ev); /* call handler */ |
|
| 332 | + | } |
|
| 334 | 333 | } |
|
| 335 | 334 | cleanup(); |
|
| 336 | 335 | XCloseDisplay(dpy); |