From cee0d0fd80faf15fcddb1421b937f1d10d8a295e Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 8 Jul 2025 09:09:30 +0800 Subject: [PATCH] opt: not tiling window not affect no_radius_when_single option --- src/animation/client.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index a656991..1ebd25e 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -239,8 +239,8 @@ void buffer_set_effect(Client *c, animationScale data) { if (c == grabc) data.should_scale = false; - if (c->isfullscreen || - (no_radius_when_single && c->mon && c->mon->visible_clients == 1)) { + if (c->isfullscreen || (no_radius_when_single && c->mon && + c->mon->visible_tiling_clients == 1)) { data.corner_location = CORNER_LOCATION_NONE; } @@ -261,7 +261,7 @@ void client_draw_shadow(Client *c) { 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_clients == 1) + c->mon->visible_tiling_clients == 1) ? CORNER_LOCATION_NONE : CORNER_LOCATION_ALL; @@ -351,7 +351,7 @@ void apply_border(Client *c) { 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_clients == 1) + c->mon->visible_tiling_clients == 1) ? CORNER_LOCATION_NONE : CORNER_LOCATION_ALL;