]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only fallback on the font if it’s actually set (Thanks phnom)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 26 Oct 2011 20:21:55 +0000 (21:21 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 26 Oct 2011 20:21:55 +0000 (21:21 +0100)
src/cfgparse.y

index 2e0bbe0ba933f1dd724a1c5570365b070835732a..252df5d08a24191bd0cd3674c8e512dcdc719157 100644 (file)
@@ -1002,7 +1002,7 @@ bar:
         }
 
         /* If no font was explicitly set, we use the i3 font as default */
-        if (!current_bar.font)
+        if (!current_bar.font && font_pattern)
             current_bar.font = sstrdup(font_pattern);
 
         /* Copy the current (static) structure into a dynamically allocated