aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2016-04-24 20:20:07 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2016-04-24 20:20:07 +0300
commitee4e245f167f0e5a859a03b06568c282d11b52d2 (patch)
tree5d19b0bee217a29afa43e165378abd78701dbf4b /swaybar
parent2e6c43e62b9b34c0ce019c013d3f6e4863a9d482 (diff)
Fix line length calculation
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index 833198fd..b9ef2242 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -278,7 +278,7 @@ void render(struct output *output, struct config *config, struct status_line *li
int width, height;
if (line->protocol == TEXT) {
- get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line);
+ get_text_size(window->cairo, window->font, &width, &height, config->plaintext_markup, "%s", line->text_line);
cairo_move_to(cairo, window->width - margin - width, margin);
pango_printf(window->cairo, window->font, config->plaintext_markup, "%s", line->text_line);
} else if (line->protocol == I3BAR && line->block_line) {