fix: view not cross monitor

This commit is contained in:
DreamMaoMao 2025-04-05 10:02:29 +08:00
parent efcee3ea07
commit 437141ff73

View file

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