simplified main event loop
Anselm R. Garbe arg@10kloc.org
Tue, 10 Oct 2006 19:15:06 +0200
M
main.c
→
main.c
@@ -356,7 +356,7 @@ drawmenu();
XSync(dpy, False); /* main event loop */ - while(running && !XNextEvent(dpy, &ev)) { + while(running && !XNextEvent(dpy, &ev)) switch (ev.type) { default: /* ignore all crap */ break;@@ -368,7 +368,6 @@ if(ev.xexpose.count == 0)
drawmenu(); break; } - } /* cleanup */ while(allitems) {