config: Fix swaybar pango_markup inconsistency

Until now, swaybar did not have pango markup enabled by default, even if
the sway config had it on. This patch aims to mimic the i3 behavior, but
maintaining the functionality of the "pango_markup" sway config command.
This commit is contained in:
Daniel Otero 2021-03-19 18:02:46 +01:00 committed by Simon Ser
parent cad6e59b93
commit b997147284
4 changed files with 25 additions and 4 deletions

View file

@ -1127,7 +1127,9 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
json_object_object_add(json, "verbose",
json_object_new_boolean(bar->verbose));
json_object_object_add(json, "pango_markup",
json_object_new_boolean(bar->pango_markup));
json_object_new_boolean(bar->pango_markup == PANGO_MARKUP_DEFAULT
? config->pango_markup
: bar->pango_markup));
json_object *colors = json_object_new_object();
json_object_object_add(colors, "background",