From 27bae1db4743454bc5885a2efcd55ab226434406 Mon Sep 17 00:00:00 2001 From: hayato-oo Date: Sun, 26 Oct 2025 00:31:34 -0400 Subject: [PATCH] fix: use current monitor only --- src/fetch/client.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fetch/client.h b/src/fetch/client.h index 961aac3d..047cd738 100644 --- a/src/fetch/client.h +++ b/src/fetch/client.h @@ -150,8 +150,7 @@ Client *find_client_by_direction(Client *tc, const Arg *arg, bool findfloating, // 第一次遍历,计算客户端数量 wl_list_for_each(c, &clients, link) { if (c && (findfloating || !c->isfloating) && !c->isunglobal && - (focus_cross_monitor || c->mon == selmon) && - (c->tags & c->mon->tagset[c->mon->seltags])) { + c->mon == selmon && (c->tags & c->mon->tagset[c->mon->seltags])) { last++; } } @@ -171,8 +170,7 @@ Client *find_client_by_direction(Client *tc, const Arg *arg, bool findfloating, last = -1; wl_list_for_each(c, &clients, link) { if (c && (findfloating || !c->isfloating) && !c->isunglobal && - (focus_cross_monitor || c->mon == selmon) && - (c->tags & c->mon->tagset[c->mon->seltags])) { + c->mon == selmon && (c->tags & c->mon->tagset[c->mon->seltags])) { last++; tempClients[last] = c; }