From d3be50b9e3bc750263aed5d2b79aaec080a35e92 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 10 Feb 2025 22:36:29 +0800 Subject: [PATCH] fix: gloabl window in scroller lost foucs when switch to empty tag --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d920d6f..2dc696a 100644 --- a/main.c +++ b/main.c @@ -1157,6 +1157,8 @@ arrange(Monitor *m, bool want_animation) { if (c->mon == m && c->isglobal) { c->tags = m->tagset[m->seltags]; + if(selmon->sel == NULL) + focusclient(c,0); } if (c->mon == m) { @@ -1723,7 +1725,7 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data) { void client_set_pending_state(Client *c) { // 判断是否需要动画 - if(c->isglobal){ + if(c->isglobal && c->isfloating){ c->animation.should_animate = false; } else if (animations && c->animation.tagining) { c->animation.tagining = false;