opt: not tiling window not affect no_radius_when_single option

This commit is contained in:
DreamMaoMao 2025-07-08 09:09:30 +08:00
parent 932192ee53
commit cee0d0fd80

View file

@ -239,8 +239,8 @@ void buffer_set_effect(Client *c, animationScale data) {
if (c == grabc) if (c == grabc)
data.should_scale = false; data.should_scale = false;
if (c->isfullscreen || if (c->isfullscreen || (no_radius_when_single && c->mon &&
(no_radius_when_single && c->mon && c->mon->visible_clients == 1)) { c->mon->visible_tiling_clients == 1)) {
data.corner_location = CORNER_LOCATION_NONE; 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); bool hit_no_border = check_hit_no_border(c);
enum corner_location current_corner_location = enum corner_location current_corner_location =
c->isfullscreen || (no_radius_when_single && c->mon && c->isfullscreen || (no_radius_when_single && c->mon &&
c->mon->visible_clients == 1) c->mon->visible_tiling_clients == 1)
? CORNER_LOCATION_NONE ? CORNER_LOCATION_NONE
: CORNER_LOCATION_ALL; : CORNER_LOCATION_ALL;
@ -351,7 +351,7 @@ void apply_border(Client *c) {
bool hit_no_border = check_hit_no_border(c); bool hit_no_border = check_hit_no_border(c);
enum corner_location current_corner_location = enum corner_location current_corner_location =
c->isfullscreen || (no_radius_when_single && c->mon && c->isfullscreen || (no_radius_when_single && c->mon &&
c->mon->visible_clients == 1) c->mon->visible_tiling_clients == 1)
? CORNER_LOCATION_NONE ? CORNER_LOCATION_NONE
: CORNER_LOCATION_ALL; : CORNER_LOCATION_ALL;