aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-10 19:15:06 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-10 19:15:06 +0200
commitd78bcf247fe03e23e7980b246ccf5d57d256ecfc (patch)
treedadb49a5424c4529eb660fa41a7b27c9bee46eae /main.c
parentafaf66dc999fba8a5fa8269c600218609cda8b56 (diff)
downloaddmenu-d78bcf247fe03e23e7980b246ccf5d57d256ecfc.tar.gz
dmenu-d78bcf247fe03e23e7980b246ccf5d57d256ecfc.tar.bz2
dmenu-d78bcf247fe03e23e7980b246ccf5d57d256ecfc.zip
simplified main event loop
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
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) {