aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dmenu.c b/dmenu.c
index 34df9ed..5cb638b 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -298,10 +298,9 @@ initfont(const char *fontstr) {
298 if(dc.font.xfont) 298 if(dc.font.xfont)
299 XFreeFont(dpy, dc.font.xfont); 299 XFreeFont(dpy, dc.font.xfont);
300 dc.font.xfont = NULL; 300 dc.font.xfont = NULL;
301 if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) { 301 if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))
302 if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) 302 && !(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
303 eprint("error, cannot load font: '%s'\n", fontstr); 303 eprint("error, cannot load font: '%s'\n", fontstr);
304 }
305 dc.font.ascent = dc.font.xfont->ascent; 304 dc.font.ascent = dc.font.xfont->ascent;
306 dc.font.descent = dc.font.xfont->descent; 305 dc.font.descent = dc.font.xfont->descent;
307 } 306 }