mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
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
This commit is contained in:
parent
d8482419fc
commit
11f0b4539d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue