fix: new window lost scroller arrange when some foucs change

This commit is contained in:
DreamMaoMao 2025-02-10 23:04:15 +08:00
parent d3be50b9e3
commit 648b5e9c92

8
main.c
View file

@ -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++) {