diff options
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | draw.c | 7 |
2 files changed, 2 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dmenu version | 1 | # dmenu version |
| 2 | VERSION = 1.5 | 2 | VERSION = 1.6 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -88,13 +88,8 @@ setfont(const char *fontstr) { | |||
| 88 | if(dc.font.set) | 88 | if(dc.font.set) |
| 89 | XFreeFontSet(dpy, dc.font.set); | 89 | XFreeFontSet(dpy, dc.font.set); |
| 90 | dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); | 90 | dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
| 91 | if(missing) { | 91 | if(missing) |
| 92 | XFreeStringList(missing); | 92 | XFreeStringList(missing); |
| 93 | if(dc.font.set) { | ||
| 94 | XFreeFontSet(dpy, dc.font.set); | ||
| 95 | dc.font.set = NULL; | ||
| 96 | } | ||
| 97 | } | ||
| 98 | if(dc.font.set) { | 93 | if(dc.font.set) { |
| 99 | XFontSetExtents *font_extents; | 94 | XFontSetExtents *font_extents; |
| 100 | XFontStruct **xfonts; | 95 | XFontStruct **xfonts; |
