From 2535a2e9f9d262f2aad0f36f9c78950f2c96a03f Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Fri, 8 Nov 2024 21:28:20 -0500 Subject: [PATCH] swaynag: account for height of lower border This draws the lower border below the message and buttons instead of slightly overlapping them when bar_border_thickness is large. --- swaynag/render.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/swaynag/render.c b/swaynag/render.c index 21b03289d..89f8ede46 100644 --- a/swaynag/render.c +++ b/swaynag/render.c @@ -235,12 +235,10 @@ static uint32_t render_to_cairo(cairo_t *cairo, struct swaynag *swaynag) { } int border = swaynag->type->bar_border_thickness; - if (max_height > swaynag->height) { - max_height += border; - } + max_height += border; cairo_set_source_u32(cairo, swaynag->type->border_bottom); cairo_rectangle(cairo, 0, - swaynag->height - border, + max_height - border, swaynag->width, border); cairo_fill(cairo);