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; }