XSetFont(dpy, dc.gc, dc.font.xfont->fid);
drawmenu();
XMapRaised(dpy, win);
+ XMaskEvent(dpy, ExposureMask, &ev);
+ drawmenu();
if(isatty(STDIN_FILENO)) {
maxname = readstdin();
grabkeyboard();
promptw = mw / 5;
text[0] = 0;
match(text);
+ drawmenu();
XSync(dpy, False);
/* main event loop */
case KeyPress:
kpress(&ev.xkey);
break;
- case Expose:
- if(ev.xexpose.count == 0)
- drawmenu();
- break;
}
/* cleanup */