summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-08-13 01:35:07 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-08-13 01:35:07 +0200
commitcfaeba4df17397ac8d99155bc166bba90db0dbbf (patch)
tree7431ff975051afec680552cbcf1e4a4c8223890c /include
parentc69da4c4f55a9f942f9729aa9942f2938397d6dd (diff)
Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
fixes #772
Diffstat (limited to 'include')
-rw-r--r--include/i3status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index eb19d52..dc40c8f 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -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)