all repos — dmenu @ b97783b07feae30f9df12c1a720d17a2dc877018

my build of dmenu

fixed fallback
Anselm R. Garbe garbeam@gmail.com
Sat, 15 Sep 2007 20:28:20 +0200
commit

b97783b07feae30f9df12c1a720d17a2dc877018

parent

11cb2e7dcc341e8c7409b26420a18de3fea99323

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M main.cmain.c

@@ -160,8 +160,10 @@ else {

if(dc.font.xfont) XFreeFont(dpy, dc.font.xfont); dc.font.xfont = NULL; - if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) - eprint("error, cannot load font: '%s'\n", fontstr); + if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) { + if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) + eprint("error, cannot load font: '%s'\n", fontstr); + } dc.font.ascent = dc.font.xfont->ascent; dc.font.descent = dc.font.xfont->descent; }