removed the hardcoded fixed fallback, it is useless in non-Latin1 environments
a308b750
2 file(s) · +2 −5
| 1 | 1 | # dwm version |
|
| 2 | - | VERSION = 2.6 |
|
| 2 | + | VERSION = 2.7 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 197 | 197 | if(dc.font.xfont) |
|
| 198 | 198 | XFreeFont(dpy, dc.font.xfont); |
|
| 199 | 199 | dc.font.xfont = NULL; |
|
| 200 | - | dc.font.xfont = XLoadQueryFont(dpy, fontstr); |
|
| 201 | - | if (!dc.font.xfont) |
|
| 202 | - | dc.font.xfont = XLoadQueryFont(dpy, "fixed"); |
|
| 203 | - | if (!dc.font.xfont) |
|
| 200 | + | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) |
|
| 204 | 201 | eprint("error, cannot init 'fixed' font\n"); |
|
| 205 | 202 | dc.font.ascent = dc.font.xfont->ascent; |
|
| 206 | 203 | dc.font.descent = dc.font.xfont->descent; |