aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe2006-09-04 07:28:03 +0200
committerAnselm R. Garbe2006-09-04 07:28:03 +0200
commit04eade6a767a4145388585f666c6d1628285e96d (patch)
treeb62bf020553740395c4c916381f3eac19cd35167
parent49ce444d3228ef00f1ad3b2deab9e133b3495b6b (diff)
small change of main event loop
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 51fa20f..6ca043d 100644
--- a/main.c
+++ b/main.c
@@ -354,6 +354,8 @@ main(int argc, char *argv[])
/* main event loop */
while(running && !XNextEvent(dpy, &ev)) {
switch (ev.type) {
+ default: /* ignore all crap */
+ break;
case KeyPress:
kpress(&ev.xkey);
break;
@@ -361,8 +363,6 @@ main(int argc, char *argv[])
if(ev.xexpose.count == 0)
drawmenu();
break;
- default:
- break;
}
}