From 8efbac109bdc23566ea50f9077a0f8e164cc535d Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Feb 2025 18:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=AA=E5=88=87=E6=89=80=E6=9C=89=E5=88=92?= =?UTF-8?q?=E5=87=BA=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=9A=84=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/maomao.c b/maomao.c index 8e47cb73..8667f403 100644 --- a/maomao.c +++ b/maomao.c @@ -878,8 +878,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offset) { wlr_scene_rect_set_size(c->border[0], clip_box.width, c->bw); wlr_scene_rect_set_size(c->border[1], clip_box.width, c->bw); - if (c->animation.tagining || c->animation.tagouted || - c->animation.tagouting) { + if (c->animation.running) { if (c->animation.current.x < c->mon->m.x) { wlr_scene_rect_set_size(c->border[2], 0, 0); wlr_scene_rect_set_size(c->border[3], c->bw, clip_box.height - 2 * c->bw); @@ -945,8 +944,7 @@ void client_apply_clip(Client *c) { } // make tagout tagin animations not visible in other monitors - if (c->animation.tagouting || c->animation.tagining || - c->animation.tagouted) { + if (c->animation.running) { if (c->animation.current.x <= c->mon->m.x) { offset = c->mon->m.x - c->animation.current.x; clip_box.x = clip_box.x + offset;