pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ce444
)
small change of main event loop
author
Anselm R. Garbe
<arg@10kloc.org>
Mon, 4 Sep 2006 05:28:03 +0000
(07:28 +0200)
committer
Anselm R. Garbe
<arg@10kloc.org>
Mon, 4 Sep 2006 05:28:03 +0000
(07:28 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
51fa20f
..
6ca043d
100644
(file)
--- 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;
}
}