diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-04-24 17:58:53 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-04-24 17:58:53 -0400 |
commit | 7efa9ab34ae1dabcc7c87d22bfba0b1312c8c662 (patch) | |
tree | 2364d4662a641f368d83494aa03b6b0879e97ca8 /swaybar/render.c | |
parent | Merge pull request #598 from Hummer12007/pango_fix (diff) | |
parent | Renamed pango_markup config options (diff) | |
download | sway-7efa9ab34ae1dabcc7c87d22bfba0b1312c8c662.tar.gz sway-7efa9ab34ae1dabcc7c87d22bfba0b1312c8c662.tar.zst sway-7efa9ab34ae1dabcc7c87d22bfba0b1312c8c662.zip |
Merge pull request #601 from Hummer12007/pango_markup_config
Pango markup config
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 5901b557..273bd4f0 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -278,9 +278,9 @@ void render(struct output *output, struct config *config, struct status_line *li | |||
278 | int width, height; | 278 | int width, height; |
279 | 279 | ||
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, config->pango_markup, "%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->pango_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; |