mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
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:
parent
cad6e59b93
commit
b997147284
4 changed files with 25 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue