From 342a42d4f4f0bf09b248f1a33ecc07cde0f33499 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 4 Sep 2006 07:28:03 +0200 Subject: [PATCH] small change of main event loop --- dmenubar/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmenubar/main.c b/dmenubar/main.c index 51fa20f..6ca043d 100644 --- a/dmenubar/main.c +++ b/dmenubar/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; } }