From 7379b92388f0c8a1c9305191f31b6467404f1ebf Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 24 Jan 2026 23:04:59 +0800 Subject: [PATCH] fix: apply border error for smartgap --- src/animation/client.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/animation/client.h b/src/animation/client.h index 1dd29a6..57bd99a 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -853,6 +853,12 @@ void resize(Client *c, struct wlr_box geo, int32_t interact) { c->bw = 0; } + bool hit_no_border = check_hit_no_border(c); + if (hit_no_border && smartgaps) { + c->bw = 0; + c->fake_no_border = true; + } + // c->geom 是真实的窗口大小和位置,跟过度的动画无关,用于计算布局 c->configure_serial = client_set_size(c, c->geom.width - 2 * c->bw, c->geom.height - 2 * c->bw);