mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: avoid use another monitor clients to caculate view found
This commit is contained in:
parent
3c7991b11e
commit
0c2b2a4f54
1 changed files with 2 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -6467,7 +6467,7 @@ void viewtoright_have_client(const Arg *arg) {
|
||||||
|
|
||||||
for (target <<= 1; target & TAGMASK; target <<= 1, n++) {
|
for (target <<= 1; target & TAGMASK; target <<= 1, n++) {
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (target & c->tags) {
|
if (target & c->tags && c->mon == selmon) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -6541,7 +6541,7 @@ void viewtoleft_have_client(const Arg *arg) {
|
||||||
|
|
||||||
for (target >>= 1; target > 0; target >>= 1, n++) {
|
for (target >>= 1; target > 0; target >>= 1, n++) {
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (target & c->tags) {
|
if (target & c->tags && c->mon == selmon) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue