From dfaab261c1581bb93d79900f71922f7dff3d0d07 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 5 Apr 2025 10:45:31 +0800 Subject: [PATCH] fix: error clip offset for clip_to_hide --- maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maomao.c b/maomao.c index 26b6986..d28dd41 100644 --- a/maomao.c +++ b/maomao.c @@ -1049,7 +1049,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) { c->mon->m.x + c->mon->m.width) { clip_box->width = clip_box->width - (c->animation.current.x + c->animation.current.width - - c->mon->m.x - c->mon->m.width); + c->mon->m.x - c->mon->m.width) + c->bw; } if (c->animation.current.y <= c->mon->m.y) { @@ -1060,7 +1060,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) { c->mon->m.y + c->mon->m.height) { clip_box->height = clip_box->height - (c->animation.current.y + c->animation.current.height - - c->mon->m.y - c->mon->m.height); + c->mon->m.y - c->mon->m.height) + c->bw; } }