From 973d40f0dfe1aea541bfc22a3b7e79ea3e47cdbf Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 15 May 2025 11:14:34 +0800 Subject: [PATCH] opt: unmanged and ignore focus window shouldn't in window num count --- src/maomao.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index dd2453e..58be80e 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1909,7 +1909,10 @@ arrange(Monitor *m, bool want_animation) { if (c->mon == m) { if (VISIBLEON(c, m)) { - m->visible_clients++; + + if(!client_is_unmanaged(c) && !client_should_ignore_focus(c)) { + m->visible_clients++; + } if (!c->is_clip_to_hide || strcmp(c->mon->pertag->ltidxs[c->mon->pertag->curtag]->name,