opt: unmanged and ignore focus window shouldn't in window num count

This commit is contained in:
DreamMaoMao 2025-05-15 11:14:34 +08:00
parent f2eb39ae95
commit 973d40f0df

View file

@ -1909,7 +1909,10 @@ arrange(Monitor *m, bool want_animation) {
if (c->mon == m) {
if (VISIBLEON(c, m)) {
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,