From 07540cb47a0d57a8e44770b75ed2cd4e3c5affc4 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 10 Feb 2025 22:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=9A=E5=8A=A8=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E4=B8=AD=E7=9A=84=E5=85=A8=E5=B1=80=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index b19ee2d8..6388e2ed 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;