From b05c76dd0a5519e00eb9ff86d95aebdbc301492c Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Mon, 24 Feb 2025 22:58:39 -0500 Subject: [PATCH] temp fix: 1px line at top of bottom border --- sway/desktop/transaction.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index f089bf29..f0317e9e 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -507,11 +507,13 @@ static void arrange_container(struct sway_container *con, wlr_scene_rect_set_clipped_region(con->border.bottom, (struct clipped_region) { .corner_radius = corner_radius, .corners = CORNER_LOCATION_BOTTOM, + // shift up one px to fix https://github.com/WillPower3309/swayfx/issues/386 + // TODO: proper fix .area = { .x = border_width, - .y = 0, + .y = -1, .width = width - 2 * border_width, - .height = border_bottom - border_width + corner_radius, + .height = border_bottom - border_width + corner_radius + 1, } }); }