From 8d0a84f3c736ee3a5b0c9cdb6b7b765a308db29f Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Wed, 15 Sep 2021 02:18:59 -0500 Subject: 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 --- swaybar/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaybar') 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); -- cgit v1.2.3