From 5ee43c302a3ba79adc64b4890f128c62bbcb6e68 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 31 Dec 2025 17:27:43 +0800 Subject: [PATCH] opt: not focus isunglobal window when focusstack --- src/fetch/client.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fetch/client.h b/src/fetch/client.h index 56ca982..c7ae1f2 100644 --- a/src/fetch/client.h +++ b/src/fetch/client.h @@ -396,6 +396,9 @@ Client *get_next_stack_client(Client *c, bool reverse) { if (&next->link == &clients) continue; /* wrap past the sentinel node */ + if (next->isunglobal) + continue; + if (next != c && next->mon && VISIBLEON(next, c->mon)) return next; } @@ -404,6 +407,9 @@ Client *get_next_stack_client(Client *c, bool reverse) { if (&next->link == &clients) continue; /* wrap past the sentinel node */ + if (next->isunglobal) + continue; + if (next != c && next->mon && VISIBLEON(next, c->mon)) return next; }