]> git.sur5r.net Git - i3/i3/blobdiff - libi3/font.c
Properly handle windows unsetting WM_TRANSIENT_FOR (Thanks Janus)
[i3/i3] / libi3 / font.c
index fc868e60bb95eb0e413ac93079df41c4051cec90..7670335fa805fb62f0869fae3b181c000d8a287d 100644 (file)
@@ -167,6 +167,12 @@ i3Font load_font(const char *pattern, const bool fallback) {
     i3Font font;
     font.type = FONT_TYPE_NONE;
 
+    /* No XCB connction, return early because we're just validating the
+     * configuration file. */
+    if (conn == NULL) {
+        return font;
+    }
+
 #if PANGO_SUPPORT
     /* Try to load a pango font if specified */
     if (strlen(pattern) > strlen("pango:") && !strncmp(pattern, "pango:", strlen("pango:"))) {