From 5d819aed838d6c6d7c060c0bd37407aae0f69e8d Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 2 Nov 2025 12:04:15 +0800 Subject: [PATCH] opt: optimize client live check --- src/animation/client.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/animation/client.h b/src/animation/client.h index 8d26adb..2e63088 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -742,6 +742,9 @@ void client_commit(Client *c) { void client_set_pending_state(Client *c) { + if (!c || c->iskilling) + return; + // 判断是否需要动画 if (!animations) { c->animation.should_animate = false;