opt: inunglobal win not in focusstack target

This commit is contained in:
DreamMaoMao 2025-06-03 21:51:09 +08:00
parent 2275e22837
commit f235384c0f

View file

@ -3991,7 +3991,7 @@ focusstack(const Arg *arg) {
return;
if (arg->i > 0) {
wl_list_for_each(c, &sel->link, link) {
if (&c->link == &clients)
if (&c->link == &clients || c->isunglobal)
continue; /* wrap past the sentinel node */
if (VISIBLEON(c, selmon))
break; /* found it */
@ -4000,7 +4000,7 @@ focusstack(const Arg *arg) {
wl_list_for_each_reverse(c, &sel->link, link) {
if (&c->link == &clients)
continue; /* wrap past the sentinel node */
if (VISIBLEON(c, selmon))
if (VISIBLEON(c, selmon) || c->isunglobal)
break; /* found it */
}
}