From cdb0c9f316dae0aae46fec5112d77b73816dc1ff Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 9 Feb 2025 17:46:58 +0800 Subject: [PATCH] fix: global window lost manage --- main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 239cb01..f819923 100644 --- a/main.c +++ b/main.c @@ -1148,10 +1148,15 @@ arrange(Monitor *m, bool want_animation) { if (!m->wlr_output->enabled) return; + wl_list_for_each(c, &clients, link) { if (c->iskilling) continue; + if (c->mon == m && c->isglobal) { + c->tags = m->tagset[m->seltags]; + } + if (c->mon == m) { if (VISIBLEON(c, m)) { wlr_scene_node_set_enabled(&c->scene->node, true); @@ -1716,7 +1721,9 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data) { void client_set_pending_state(Client *c) { // 判断是否需要动画 - if (animations && c->animation.tagining) { + if(c->isglobal){ + c->animation.should_animate = false; + } else if (animations && c->animation.tagining) { c->animation.tagining = false; c->animation.should_animate = true; c->animation.initial = c->animainit_geom;