From d78bcf247fe03e23e7980b246ccf5d57d256ecfc Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 10 Oct 2006 19:15:06 +0200 Subject: simplified main event loop --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index fcb9295..3fa1e54 100644 --- a/main.c +++ b/main.c @@ -356,7 +356,7 @@ main(int argc, char *argv[]) { 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 @@ main(int argc, char *argv[]) { drawmenu(); break; } - } /* cleanup */ while(allitems) { -- cgit v1.2.3-13-gbd6f