opt: not focus isunglobal window when focusstack

This commit is contained in:
DreamMaoMao
2025-12-31 17:27:43 +08:00
parent 0edcd32271
commit 5ee43c302a

View File

@@ -396,6 +396,9 @@ Client *get_next_stack_client(Client *c, bool reverse) {
if (&next->link == &clients) if (&next->link == &clients)
continue; /* wrap past the sentinel node */ continue; /* wrap past the sentinel node */
if (next->isunglobal)
continue;
if (next != c && next->mon && VISIBLEON(next, c->mon)) if (next != c && next->mon && VISIBLEON(next, c->mon))
return next; return next;
} }
@@ -404,6 +407,9 @@ Client *get_next_stack_client(Client *c, bool reverse) {
if (&next->link == &clients) if (&next->link == &clients)
continue; /* wrap past the sentinel node */ continue; /* wrap past the sentinel node */
if (next->isunglobal)
continue;
if (next != c && next->mon && VISIBLEON(next, c->mon)) if (next != c && next->mon && VISIBLEON(next, c->mon))
return next; return next;
} }