From 7ded90021b8d85df5550ca86d57625322d3c2232 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 22 Jun 2025 19:02:47 +0800 Subject: [PATCH] fix: error surface clip size when no animaitons --- src/maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index b7adad2..74d3b25 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1283,8 +1283,8 @@ void client_apply_clip(Client *c) { client_draw_shadow(c); surface_clip = clip_box; - surface_clip.width = surface_clip.width - 2 * c->bw; - surface_clip.height = surface_clip.height - 2 * c->bw; + surface_clip.width = surface_clip.width - c->bw; + surface_clip.height = surface_clip.height - c->bw; if (surface_clip.width <= 0 || surface_clip.height <= 0) { return;