diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-10-10 19:15:06 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-10-10 19:15:06 +0200 |
commit | d78bcf247fe03e23e7980b246ccf5d57d256ecfc (patch) | |
tree | dadb49a5424c4529eb660fa41a7b27c9bee46eae | |
parent | afaf66dc999fba8a5fa8269c600218609cda8b56 (diff) |
simplified main event loop
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | main.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | # dmenu version | 1 | # dmenu version |
2 | VERSION = 1.2 | 2 | VERSION = 1.3 |
3 | 3 | ||
4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
5 | 5 | ||
@@ -356,7 +356,7 @@ main(int argc, char *argv[]) { | |||
356 | XSync(dpy, False); | 356 | XSync(dpy, False); |
357 | 357 | ||
358 | /* main event loop */ | 358 | /* main event loop */ |
359 | while(running && !XNextEvent(dpy, &ev)) { | 359 | while(running && !XNextEvent(dpy, &ev)) |
360 | switch (ev.type) { | 360 | switch (ev.type) { |
361 | default: /* ignore all crap */ | 361 | default: /* ignore all crap */ |
362 | break; | 362 | break; |
@@ -368,7 +368,6 @@ main(int argc, char *argv[]) { | |||
368 | drawmenu(); | 368 | drawmenu(); |
369 | break; | 369 | break; |
370 | } | 370 | } |
371 | } | ||
372 | 371 | ||
373 | /* cleanup */ | 372 | /* cleanup */ |
374 | while(allitems) { | 373 | while(allitems) { |