From 58ab7ff4e7d51ae8143f2a7cd81c75badf2f5b55 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 29 Jun 2026 13:51:40 +0800 Subject: [PATCH] opt: logic hide client not need draw frame --- src/mango.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mango.c b/src/mango.c index 110dcd5b..c75b2054 100644 --- a/src/mango.c +++ b/src/mango.c @@ -5251,6 +5251,9 @@ void rendermon(struct wl_listener *listener, void *data) { } wl_list_for_each_safe(c, tmp, &fadeout_clients, fadeout_link) { + if (c->is_logic_hide) + continue; + need_more_frames = client_draw_fadeout_frame(c) || need_more_frames; } @@ -5260,6 +5263,9 @@ void rendermon(struct wl_listener *listener, void *data) { // 绘制客户端 wl_list_for_each(c, &clients, link) { + if (c->is_logic_hide) + continue; + need_more_frames = client_draw_frame(c) || need_more_frames; if (!config.animations && !grabc && c->configure_serial && client_is_rendered_on_mon(c, m)) {