]> git.sur5r.net Git - i3/i3status/commitdiff
Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 12 Aug 2012 23:35:07 +0000 (01:35 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 12 Aug 2012 23:35:07 +0000 (01:35 +0200)
fixes #772

include/i3status.h

index eb19d52e16626c8ce584f86deb205521ee465de9..dc40c8f8d6fd5d539a2df3bf2badec067556e55c 100644 (file)
@@ -99,7 +99,7 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_format;
                                yajl_gen_string(json_gen, (const unsigned char *)"color", strlen("color")); \
                                yajl_gen_string(json_gen, (const unsigned char *)val, strlen(val)); \
                        } else { \
-                               outwalk += sprintf(outwalk, "%s", color("color_bad")); \
+                               outwalk += sprintf(outwalk, "%s", color(colorstr)); \
                        } \
                } \
        } while (0)