aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorNathan Schulte <nmschulte@gmail.com>2021-09-15 02:18:59 -0500
committerSimon Ser <contact@emersion.fr>2021-09-15 09:26:08 +0200
commit8d0a84f3c736ee3a5b0c9cdb6b7b765a308db29f (patch)
tree0c8bb8962e482552898f2d321286ffd6e9fb34f8 /swaybar
parent9727db67cfb53ed641b1e622854a589333ba42bd (diff)
swaybar: properly draw urgent block right border
introduced via #3287 -- https://github.com/swaywm/sway/pull/3287/files#diff-a1e918ce0bc71f4f7934767541319e724a51a34a5418ecdc286065e50921eda4L239 uncovered via #3394 -- https://github.com/swaywm/sway/pull/3394/files#diff-a1e918ce0bc71f4f7934767541319e724a51a34a5418ecdc286065e50921eda4R258
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 de468b4f..65cacd39 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -307,7 +307,7 @@ static uint32_t render_status_block(struct render_context *ctx,
render_text(cairo, config->font, 1, block->markup, "%s", text);
x_pos += width;
- if (block->border && block->border_right > 0) {
+ if (border_color && block->border_right > 0) {
x_pos += margin;
render_sharp_line(cairo, border_color, x_pos, y_pos,
block->border_right, render_height);