all repos — dmenu @ 56f9e26b7268d653afb6db82aac9bad71abde0dd

my build of dmenu

applied yiyus initfont fix
arg@suckless.org unknown
Wed, 19 Sep 2007 17:33:35 +0200
commit

56f9e26b7268d653afb6db82aac9bad71abde0dd

parent

d094ebea968e3d08b985a754aa9df30f56f649c6

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

jump to
M dmenu.cdmenu.c

@@ -298,10 +298,9 @@ else {

if(dc.font.xfont) XFreeFont(dpy, dc.font.xfont); dc.font.xfont = NULL; - if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) { - if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) - eprint("error, cannot load font: '%s'\n", fontstr); - } + if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)) + && !(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; }