mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-12 13:30:01 -05:00
fix: new window lost scroller arrange when some foucs change
This commit is contained in:
parent
d3be50b9e3
commit
648b5e9c92
1 changed files with 7 additions and 1 deletions
8
main.c
8
main.c
|
|
@ -4630,7 +4630,13 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
||||||
} else if(selmon->prevsel && selmon->prevsel->istiled && !c->ismaxmizescreen && !c->isfullscreen) {
|
} else if(selmon->prevsel && selmon->prevsel->istiled && !c->ismaxmizescreen && !c->isfullscreen) {
|
||||||
root_client = selmon->prevsel;
|
root_client = selmon->prevsel;
|
||||||
} else {
|
} else {
|
||||||
return;
|
wl_list_for_each(c, &clients, link) {
|
||||||
|
if (c->iskilling)
|
||||||
|
continue;
|
||||||
|
if (c->tags == m->tagset[m->seltags] && !c->isfloating) {
|
||||||
|
root_client = c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0;tempClients[i]; i++) {
|
for (i = 0;tempClients[i]; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue