diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-25 15:24:12 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-25 15:24:12 +0100 |
commit | 123de8600179feceb7f78fc246da69ee22f04ee3 (patch) | |
tree | f1742043221c1047067cc0e1b1a486f32a6527b6 /swaybar | |
parent | Fix colors off by one (diff) | |
download | sway-123de8600179feceb7f78fc246da69ee22f04ee3.tar.gz sway-123de8600179feceb7f78fc246da69ee22f04ee3.tar.zst sway-123de8600179feceb7f78fc246da69ee22f04ee3.zip |
swaybar: Fix plaintext handling.
Fix #473
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 369fa046..ce5d10b4 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -287,7 +287,7 @@ void render(struct output *output, struct config *config, struct status_line *li | |||
287 | if (line->protocol == TEXT) { | 287 | if (line->protocol == TEXT) { |
288 | get_text_size(window, &width, &height, "%s", line->text_line); | 288 | get_text_size(window, &width, &height, "%s", line->text_line); |
289 | cairo_move_to(cairo, window->width - margin - width, margin); | 289 | cairo_move_to(cairo, window->width - margin - width, margin); |
290 | pango_printf(window, "%s", line); | 290 | pango_printf(window, "%s", line->text_line); |
291 | } else if (line->protocol == I3BAR && line->block_line) { | 291 | } else if (line->protocol == I3BAR && line->block_line) { |
292 | double pos = window->width - 0.5; | 292 | double pos = window->width - 0.5; |
293 | bool edge = true; | 293 | bool edge = true; |