diff options
author | 2016-04-24 08:52:15 -0400 | |
---|---|---|
committer | 2016-04-24 08:52:15 -0400 | |
commit | dd575ffd552e40c239c5e2b0ce2cd11b02899872 (patch) | |
tree | 15d8086aba7efc1eb4c077455cd04bda3a379425 /swaybar/status_line.c | |
parent | Merge pull request #597 from wdbw/swaylock-pam-change (diff) | |
parent | Use i3bar format for markup field. (diff) | |
download | sway-dd575ffd552e40c239c5e2b0ce2cd11b02899872.tar.gz sway-dd575ffd552e40c239c5e2b0ce2cd11b02899872.tar.zst sway-dd575ffd552e40c239c5e2b0ce2cd11b02899872.zip |
Merge pull request #599 from mikkeloscar/bar-markup-pango
Use i3bar format for markup field.
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r-- | swaybar/status_line.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index 63db702f..49a8363a 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c | |||
@@ -141,7 +141,11 @@ static void parse_json(struct bar *bar, const char *text) { | |||
141 | } | 141 | } |
142 | 142 | ||
143 | if (markup) { | 143 | if (markup) { |
144 | new->markup = json_object_get_boolean(markup); | 144 | new->markup = false; |
145 | const char *markup_str = json_object_get_string(markup); | ||
146 | if (strcmp(markup_str, "pango") == 0) { | ||
147 | new->markup = true; | ||
148 | } | ||
145 | } | 149 | } |
146 | 150 | ||
147 | if (separator) { | 151 | if (separator) { |