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) {