From fa7b09470c577ba220df32d056e71cdf63148b2f Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 6 Feb 2025 11:40:33 +0800 Subject: [PATCH] fix for animaiton direction judge --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index ceeb276a..63a9e3c1 100644 --- a/main.c +++ b/main.c @@ -3710,9 +3710,10 @@ void exchange_client(const Arg *arg) { int is_special_animaiton_rule(Client *c) { int visible_client_number = 0; Client *count_c; - wl_list_for_each(count_c, &clients, link) - if (count_c && VISIBLEON(count_c,selmon) && !count_c->isminied && !c->iskilling){ - visible_client_number++; + wl_list_for_each(count_c, &clients, link) { + if (count_c && VISIBLEON(count_c,selmon) && !count_c->isminied && !count_c->iskilling){ + visible_client_number++; + } } if (visible_client_number < 2 && !c->isfloating) {