mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Merge pull request #599 from mikkeloscar/bar-markup-pango
Use i3bar format for markup field.
This commit is contained in:
commit
dd575ffd55
1 changed files with 5 additions and 1 deletions
|
@ -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