From 437141ff7399d23a08019f210e98334fe410163b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 5 Apr 2025 10:02:29 +0800 Subject: [PATCH] fix: view not cross monitor --- maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maomao.c b/maomao.c index c21b894..26b6986 100644 --- a/maomao.c +++ b/maomao.c @@ -6699,7 +6699,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 (c->mon == selmon && target & c->tags) { found = 1; break; } @@ -6773,7 +6773,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 (c->mon == selmon && target & c->tags) { found = 1; break; }