]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: Bugfix: Don’t crash when tray_output is not set (Thanks fernandotcl)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 21 Oct 2011 22:15:15 +0000 (23:15 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 21 Oct 2011 22:15:15 +0000 (23:15 +0100)
i3bar/src/xcb.c

index a9ecc004489afe50bec055abd805101b8eae917b..fa3860e8ad40cdcddf21c012eec2651b1cb5ae23 100644 (file)
@@ -1359,7 +1359,8 @@ void reconfig_windows() {
             }
 
             if (!tray_configured &&
-                strcasecmp("none", config.tray_output) != 0) {
+                (!config.tray_output ||
+                 strcasecmp("none", config.tray_output) != 0)) {
                 init_tray();
                 tray_configured = true;
             }