fix: fullscreen should no corner radius

This commit is contained in:
DreamMaoMao 2025-06-22 22:42:56 +08:00
parent f3c33899bd
commit 26e326c7dc

View file

@ -1101,7 +1101,8 @@ void apply_border(Client *c) {
bool hit_no_border = check_hit_no_border(c);
enum corner_location current_corner_location =
c->mon->visible_clients == 1 && no_radius_when_single
c->isfullscreen ||
(c->mon->visible_clients == 1 && no_radius_when_single)
? CORNER_LOCATION_NONE
: CORNER_LOCATION_ALL;
@ -5118,7 +5119,8 @@ void buffer_set_effect(Client *c, animationScale data) {
if (c == grabc)
data.should_scale = false;
if (c->mon->visible_clients == 1 && no_radius_when_single) {
if (c->isfullscreen ||
(c->mon->visible_clients == 1 && no_radius_when_single)) {
data.corner_location = CORNER_LOCATION_NONE;
}