|
|
@ -479,6 +479,8 @@ main(int argc, char *argv[]) { |
|
|
|
XSetFont(dpy, dc.gc, dc.font.xfont->fid); |
|
|
|
XSetFont(dpy, dc.gc, dc.font.xfont->fid); |
|
|
|
drawmenu(); |
|
|
|
drawmenu(); |
|
|
|
XMapRaised(dpy, win); |
|
|
|
XMapRaised(dpy, win); |
|
|
|
|
|
|
|
XMaskEvent(dpy, ExposureMask, &ev); |
|
|
|
|
|
|
|
drawmenu(); |
|
|
|
if(isatty(STDIN_FILENO)) { |
|
|
|
if(isatty(STDIN_FILENO)) { |
|
|
|
maxname = readstdin(); |
|
|
|
maxname = readstdin(); |
|
|
|
grabkeyboard(); |
|
|
|
grabkeyboard(); |
|
|
@ -506,6 +508,7 @@ main(int argc, char *argv[]) { |
|
|
|
promptw = mw / 5; |
|
|
|
promptw = mw / 5; |
|
|
|
text[0] = 0; |
|
|
|
text[0] = 0; |
|
|
|
match(text); |
|
|
|
match(text); |
|
|
|
|
|
|
|
drawmenu(); |
|
|
|
XSync(dpy, False); |
|
|
|
XSync(dpy, False); |
|
|
|
|
|
|
|
|
|
|
|
/* main event loop */ |
|
|
|
/* main event loop */ |
|
|
@ -516,10 +519,6 @@ main(int argc, char *argv[]) { |
|
|
|
case KeyPress: |
|
|
|
case KeyPress: |
|
|
|
kpress(&ev.xkey); |
|
|
|
kpress(&ev.xkey); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case Expose: |
|
|
|
|
|
|
|
if(ev.xexpose.count == 0) |
|
|
|
|
|
|
|
drawmenu(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* cleanup */ |
|
|
|
/* cleanup */ |
|
|
|