diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 07:28:03 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 07:28:03 +0200 |
commit | 04eade6a767a4145388585f666c6d1628285e96d (patch) | |
tree | b62bf020553740395c4c916381f3eac19cd35167 | |
parent | 49ce444d3228ef00f1ad3b2deab9e133b3495b6b (diff) |
small change of main event loop
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -354,6 +354,8 @@ main(int argc, char *argv[]) | |||
354 | /* main event loop */ | 354 | /* main event loop */ |
355 | while(running && !XNextEvent(dpy, &ev)) { | 355 | while(running && !XNextEvent(dpy, &ev)) { |
356 | switch (ev.type) { | 356 | switch (ev.type) { |
357 | default: /* ignore all crap */ | ||
358 | break; | ||
357 | case KeyPress: | 359 | case KeyPress: |
358 | kpress(&ev.xkey); | 360 | kpress(&ev.xkey); |
359 | break; | 361 | break; |
@@ -361,8 +363,6 @@ main(int argc, char *argv[]) | |||
361 | if(ev.xexpose.count == 0) | 363 | if(ev.xexpose.count == 0) |
362 | drawmenu(); | 364 | drawmenu(); |
363 | break; | 365 | break; |
364 | default: | ||
365 | break; | ||
366 | } | 366 | } |
367 | } | 367 | } |
368 | 368 | ||