|
|
@ -354,6 +354,8 @@ main(int argc, char *argv[]) |
|
|
|
/* main event loop */ |
|
|
|
/* main event loop */ |
|
|
|
while(running && !XNextEvent(dpy, &ev)) { |
|
|
|
while(running && !XNextEvent(dpy, &ev)) { |
|
|
|
switch (ev.type) { |
|
|
|
switch (ev.type) { |
|
|
|
|
|
|
|
default: /* ignore all crap */ |
|
|
|
|
|
|
|
break; |
|
|
|
case KeyPress: |
|
|
|
case KeyPress: |
|
|
|
kpress(&ev.xkey); |
|
|
|
kpress(&ev.xkey); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -361,8 +363,6 @@ main(int argc, char *argv[]) |
|
|
|
if(ev.xexpose.count == 0) |
|
|
|
if(ev.xexpose.count == 0) |
|
|
|
drawmenu(); |
|
|
|
drawmenu(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|