diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/config.c | 1 | ||||
-rw-r--r-- | swaybar/render.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/swaybar/config.c b/swaybar/config.c index 6b9ff86b..7ef9a07e 100644 --- a/swaybar/config.c +++ b/swaybar/config.c | |||
@@ -46,6 +46,7 @@ char *parse_font(const char *font) { | |||
46 | struct config *init_config() { | 46 | struct config *init_config() { |
47 | struct config *config = calloc(1, sizeof(struct config)); | 47 | struct config *config = calloc(1, sizeof(struct config)); |
48 | config->status_command = NULL; | 48 | config->status_command = NULL; |
49 | config->plaintext_markup = true; | ||
49 | config->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM; | 50 | config->position = DESKTOP_SHELL_PANEL_POSITION_BOTTOM; |
50 | config->font = strdup("monospace 10"); | 51 | config->font = strdup("monospace 10"); |
51 | config->mode = NULL; | 52 | config->mode = NULL; |
diff --git a/swaybar/render.c b/swaybar/render.c index 5901b557..833198fd 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -280,7 +280,7 @@ void render(struct output *output, struct config *config, struct status_line *li | |||
280 | if (line->protocol == TEXT) { | 280 | if (line->protocol == TEXT) { |
281 | get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line); | 281 | get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line); |
282 | cairo_move_to(cairo, window->width - margin - width, margin); | 282 | cairo_move_to(cairo, window->width - margin - width, margin); |
283 | pango_printf(window->cairo, window->font, true, "%s", line->text_line); | 283 | pango_printf(window->cairo, window->font, config->plaintext_markup, "%s", line->text_line); |
284 | } else if (line->protocol == I3BAR && line->block_line) { | 284 | } else if (line->protocol == I3BAR && line->block_line) { |
285 | double pos = window->width - 0.5; | 285 | double pos = window->width - 0.5; |
286 | bool edge = true; | 286 | bool edge = true; |