From 8da6049ca9e16d4988e09a334ab8be5e09ee96cc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 23 Oct 2011 22:02:11 +0100 Subject: [PATCH] Actually make load_font only fallback if 'fallback' is true --- src/xcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xcb.c b/src/xcb.c index d9891bfc..2b9ad7bf 100644 --- a/src/xcb.c +++ b/src/xcb.c @@ -32,7 +32,7 @@ i3Font load_font(const char *pattern, bool fallback) { xcb_generic_error_t *error = xcb_request_check(conn, font_cookie); /* If we fail to open font, fall back to 'fixed'. If opening 'fixed' fails fall back to '-misc-*' */ - if (error != NULL) { + if (fallback && error != NULL) { ELOG("Could not open font %s (X error %d). Reverting to backup font.\n", pattern, error->error_code); pattern = "fixed"; font_cookie = xcb_open_font_checked(conn, new.id, strlen(pattern), pattern);