mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-23 06:59:51 -05:00
fix: view not cross monitor
This commit is contained in:
parent
efcee3ea07
commit
437141ff73
1 changed files with 2 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -6699,7 +6699,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 (c->mon == selmon && target & c->tags) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -6773,7 +6773,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 (c->mon == selmon && target & c->tags) {
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue