From 26e326c7dc0a14b4a3d977839721d23209a1361a Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 22 Jun 2025 22:42:56 +0800 Subject: [PATCH] fix: fullscreen should no corner radius --- src/maomao.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index 92bfc8c..ae924fb 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -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; }