From 5db7c42bacb2836630dcc440a2423a1b43f8fbd1 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 5 Apr 2025 07:26:53 +0800 Subject: [PATCH] fix: tag animaition for float window miss clip --- maomao.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maomao.c b/maomao.c index aeb4c13..c21b894 100644 --- a/maomao.c +++ b/maomao.c @@ -1008,7 +1008,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offsetx, wlr_scene_node_set_position(&c->border[3]->node, clip_box.width - c->bw, c->bw); - if (ISTILED(c)) { + if (ISTILED(c) || c->animation.tagining || c->animation.tagouted || c->animation.tagouting) { if (c->animation.current.x < c->mon->m.x) { set_rect_size(c->border[2], 0, 0); } else if (c->animation.current.x + c->animation.current.width > @@ -1037,10 +1037,10 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) { offset.x = 0; offset.y =0; - if(!ISTILED(c)) return offset; + if(!ISTILED(c) && !c->animation.tagining && !c->animation.tagouted && !c->animation.tagouting) return offset; // // make tagout tagin animations not visible in other monitors - if (ISTILED(c)) { + if (ISTILED(c) || c->animation.tagining || c->animation.tagouted || c->animation.tagouting) { if (c->animation.current.x <= c->mon->m.x) { offsetx = c->mon->m.x - c->animation.current.x - c->bw; clip_box->x = clip_box->x + offsetx;