simplified main event loop
This commit is contained in:
parent
6082d54f96
commit
e916910ae9
@ -1,5 +1,5 @@
|
||||
# dmenu version
|
||||
VERSION = 1.2
|
||||
VERSION = 1.3
|
||||
|
||||
# Customize below to fit your system
|
||||
|
||||
|
@ -356,7 +356,7 @@ main(int argc, char *argv[]) {
|
||||
XSync(dpy, False);
|
||||
|
||||
/* main event loop */
|
||||
while(running && !XNextEvent(dpy, &ev)) {
|
||||
while(running && !XNextEvent(dpy, &ev))
|
||||
switch (ev.type) {
|
||||
default: /* ignore all crap */
|
||||
break;
|
||||
@ -368,7 +368,6 @@ main(int argc, char *argv[]) {
|
||||
drawmenu();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
while(allitems) {
|
||||
|
Loading…
Reference in New Issue
Block a user