diff options
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | draw.c | 5 |
2 files changed, 2 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dwm version | 1 | # dwm version |
| 2 | VERSION = 2.6 | 2 | VERSION = 2.7 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -197,10 +197,7 @@ setfont(const char *fontstr) { | |||
| 197 | if(dc.font.xfont) | 197 | if(dc.font.xfont) |
| 198 | XFreeFont(dpy, dc.font.xfont); | 198 | XFreeFont(dpy, dc.font.xfont); |
| 199 | dc.font.xfont = NULL; | 199 | dc.font.xfont = NULL; |
| 200 | dc.font.xfont = XLoadQueryFont(dpy, fontstr); | 200 | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) |
| 201 | if (!dc.font.xfont) | ||
| 202 | dc.font.xfont = XLoadQueryFont(dpy, "fixed"); | ||
| 203 | if (!dc.font.xfont) | ||
| 204 | eprint("error, cannot init 'fixed' font\n"); | 201 | eprint("error, cannot init 'fixed' font\n"); |
| 205 | dc.font.ascent = dc.font.xfont->ascent; | 202 | dc.font.ascent = dc.font.xfont->ascent; |
| 206 | dc.font.descent = dc.font.xfont->descent; | 203 | dc.font.descent = dc.font.xfont->descent; |
