aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2013-10-07 13:40:26 +0000
committerokan2013-10-07 13:40:26 +0000
commit22c136c7443fea5af676a5630f689bcfb1c094b8 (patch)
treef71a07e79ced62babf18ec38e5206ca3402ff6d7
parent86ed781908e60dff45fd3c2eafac2c88e343dcaf (diff)
downloadcwm-22c136c7443fea5af676a5630f689bcfb1c094b8.tar.gz
trying parsing a XLFD string first, then by pattern
Diffstat (limited to '')
-rw-r--r--conf.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/conf.c b/conf.c
index 01a4d0f..c6803a5 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.145 2013/07/16 14:22:25 okan Exp $
+ * $OpenBSD: conf.c,v 1.146 2013/10/07 13:40:26 okan Exp $
*/
#include <sys/param.h>
@@ -104,9 +104,12 @@ conf_screen(struct screen_ctx *sc)
sc->gap = Conf.gap;
- sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font);
- if (sc->xftfont == NULL)
- errx(1, "XftFontOpenName");
+ sc->xftfont = XftFontOpenXlfd(X_Dpy, sc->which, Conf.font);
+ if (sc->xftfont == NULL) {
+ sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font);
+ if (sc->xftfont == NULL)
+ errx(1, "XftFontOpenName");
+ }
for (i = 0; i < nitems(color_binds); i++) {
if (i == CWM_COLOR_MENU_FONT_SEL && *Conf.color[i] == '\0') {