From 599608ec7084d5cc6ccc556e00e6a55c9c780d35 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Wed, 1 Aug 2012 02:14:42 +0800 Subject: [PATCH] Default font backend should be font set. --- spectrwm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index ec56f46..7d2d1a8 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -371,7 +371,7 @@ pid_t bar_pid; XFontSet bar_fs; XFontSetExtents *bar_fs_extents; XftFont *bar_font; -int bar_font_legacy = 0; +int bar_font_legacy = 1; char *bar_fonts; XftColor bar_font_color; struct passwd *pwd; @@ -6043,9 +6043,11 @@ setconfvalue(char *selector, char *value, int flags) "memory for bar_fonts."); free(b); - /* check if entry contains only xlfd entries */ - bar_font_legacy = 1; + /* If already in xft mode, then we are done. */ + if (!bar_font_legacy) + break; + /* If there are any non-XLFD entries, switch to Xft mode. */ while ((b = strsep(&value, ",")) != NULL) { if (*b == '\0') continue; -- 2.39.2