mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
feat: add option focus_cross_monitor
This commit is contained in:
parent
e0de9a8fc1
commit
1129be616d
4 changed files with 9 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -1684,7 +1684,7 @@ Client *direction_select(const Arg *arg) {
|
|||
|
||||
// 第一次遍历,计算客户端数量
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c && (c->tags & c->mon->tagset[c->mon->seltags])) {
|
||||
if (c && (focus_cross_monitor || c->mon == selmon) && (c->tags & c->mon->tagset[c->mon->seltags])) {
|
||||
last++;
|
||||
}
|
||||
}
|
||||
|
|
@ -1703,7 +1703,7 @@ Client *direction_select(const Arg *arg) {
|
|||
// 第二次遍历,填充 tempClients
|
||||
last = -1;
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c && (c->tags & c->mon->tagset[c->mon->seltags])) {
|
||||
if (c && (focus_cross_monitor || c->mon == selmon) && (c->tags & c->mon->tagset[c->mon->seltags])) {
|
||||
last++;
|
||||
tempClients[last] = c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue