diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-04-24 10:23:03 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-04-24 10:23:03 +0200 |
| commit | ae02072b2642f75476f23e1efb802d87a1876086 (patch) | |
| tree | 15d8086aba7efc1eb4c077455cd04bda3a379425 /swaybar/status_line.c | |
| parent | d088d163e55a046e437c11c52b3fa8a4f594c27b (diff) | |
Use i3bar format for markup field.
In the i3bar protocol the value of the markup field is a string: "pango"
or "none" rather than a bool. This patch makes swaybar compatible with
that.
http://i3wm.org/docs/i3bar-protocol.html
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) { } if (markup) { - new->markup = json_object_get_boolean(markup); + new->markup = false; + const char *markup_str = json_object_get_string(markup); + if (strcmp(markup_str, "pango") == 0) { + new->markup = true; + } } if (separator) { |
