mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: scroller focus cross monitor
This commit is contained in:
parent
299fe4c175
commit
94c93b912f
2 changed files with 3 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -1680,7 +1680,7 @@ Client *direction_select(const Arg *arg) {
|
||||||
|
|
||||||
// 第一次遍历,计算客户端数量
|
// 第一次遍历,计算客户端数量
|
||||||
wl_list_for_each(c, &clients, link) {
|
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++;
|
last++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1699,7 +1699,7 @@ Client *direction_select(const Arg *arg) {
|
||||||
// 第二次遍历,填充 tempClients
|
// 第二次遍历,填充 tempClients
|
||||||
last = -1;
|
last = -1;
|
||||||
wl_list_for_each(c, &clients, link) {
|
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++;
|
last++;
|
||||||
tempClients[last] = c;
|
tempClients[last] = c;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
|
||||||
int scroller_structs = 20;
|
int scroller_structs = 20;
|
||||||
float scroller_default_proportion = 0.9;
|
float scroller_default_proportion = 0.9;
|
||||||
int scoller_focus_center = 0;
|
int scoller_focus_center = 0;
|
||||||
|
int focus_cross_monitor = 0;
|
||||||
|
|
||||||
int bypass_surface_visibility =
|
int bypass_surface_visibility =
|
||||||
0; /* 1 means idle inhibitors will disable idle tracking even if it's
|
0; /* 1 means idle inhibitors will disable idle tracking even if it's
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue