From dff26f53033d27eb4b7e2b143046d98a6db92611 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 10 Feb 2025 23:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=9A=E5=8A=A8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=A2=E5=A4=B1=E7=AE=A1=E7=90=86=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6388e2ed..6fabf4fd 100644 --- a/main.c +++ b/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) { root_client = selmon->prevsel; } 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++) {