From a1a7cf5a7a8a801c1833e1c2f4f4bfa4e3af601e Mon Sep 17 00:00:00 2001 From: Andrej Novikov Date: Sun, 14 Dec 2025 15:15:21 +0200 Subject: [PATCH] fix: rounded corners being drawn on windows that extend out of screen --- src/animation/client.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index b5b7c5d..eb9ff4e 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -354,11 +354,13 @@ void apply_border(Client *c) { return; bool hit_no_border = check_hit_no_border(c); - enum corner_location current_corner_location = - c->isfullscreen || (no_radius_when_single && c->mon && - c->mon->visible_tiling_clients == 1) - ? CORNER_LOCATION_NONE - : CORNER_LOCATION_ALL; + enum corner_location current_corner_location; + if (c->isfullscreen || (no_radius_when_single && c->mon && + c->mon->visible_tiling_clients == 1)) { + current_corner_location = CORNER_LOCATION_NONE; + } else { + current_corner_location = set_client_corner_location(c); + } // Handle no-border cases if (hit_no_border && smartgaps) {