From 0c2b2a4f54ffdbf6fc340d489f70ebe3a9bc3f48 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Mar 2025 15:42:23 +0800 Subject: [PATCH] fix: avoid use another monitor clients to caculate view found --- maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maomao.c b/maomao.c index 9cd43535..b4c35cbf 100644 --- a/maomao.c +++ b/maomao.c @@ -6467,7 +6467,7 @@ void viewtoright_have_client(const Arg *arg) { for (target <<= 1; target & TAGMASK; target <<= 1, n++) { wl_list_for_each(c, &clients, link) { - if (target & c->tags) { + if (target & c->tags && c->mon == selmon) { found = 1; break; } @@ -6541,7 +6541,7 @@ void viewtoleft_have_client(const Arg *arg) { for (target >>= 1; target > 0; target >>= 1, n++) { wl_list_for_each(c, &clients, link) { - if (target & c->tags) { + if (target & c->tags && c->mon == selmon) { found = 1; break; }