From f235384c0f3caa9a9ea98f71dd75285aedcfcf05 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 3 Jun 2025 21:51:09 +0800 Subject: [PATCH] opt: inunglobal win not in focusstack target --- src/maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index 655c858..2e44ff1 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -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 */ } }