From b3b58c08e4e15c4dbdd04bae52300d1e8effed33 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 21 Feb 2007 21:36:54 +0100 Subject: just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair) --- main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index d39c913..c92f415 100644 --- 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); -- cgit 1.4.1-2-gfad0 4de23adebc7a3a2742c6c20dfd87010fb'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/html/027call_ingredient.cc.html
blob: 36687fd84ac8261fd4bcc76f2cbe87c7a8516eae (plain) (tree)
1
2
3
4
5
6
7
8
9
10