simplified main event loop

This commit is contained in:
Anselm R. Garbe 2006-10-10 19:15:06 +02:00
parent afaf66dc99
commit d78bcf247f
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 1.2 VERSION = 1.3
# Customize below to fit your system # Customize below to fit your system

3
main.c
View File

@ -356,7 +356,7 @@ main(int argc, char *argv[]) {
XSync(dpy, False); XSync(dpy, False);
/* main event loop */ /* main event loop */
while(running && !XNextEvent(dpy, &ev)) { while(running && !XNextEvent(dpy, &ev))
switch (ev.type) { switch (ev.type) {
default: /* ignore all crap */ default: /* ignore all crap */
break; break;
@ -368,7 +368,6 @@ main(int argc, char *argv[]) {
drawmenu(); drawmenu();
break; break;
} }
}
/* cleanup */ /* cleanup */
while(allitems) { while(allitems) {