From 724f72142f6dc880068a92e412f3f3366e643569 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 2 Mar 2007 15:16:36 +0100 Subject: also, don't set the font all the time --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index d87e5dc..0f07773 100644 --- a/main.c +++ b/main.c @@ -493,6 +493,8 @@ main(int argc, char *argv[]) { dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen)); dc.gc = XCreateGC(dpy, root, 0, 0); XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); + if(!dc.font.set) + XSetFont(dpy, dc.gc, dc.font.xfont->fid); if(maxname) cmdw = textw(maxname); if(cmdw > mw / 3) -- cgit v1.2.3-70-g09d2