From 9e3ac1ef5ccf574ca58138a3a9cdca507c11d819 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 27 Feb 2026 16:28:08 +0800 Subject: [PATCH] fix: not need clip monitor scene in every animation frame --- src/animation/client.h | 4 ---- src/mango.c | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index bfd0a266..9d4878a3 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -313,8 +313,6 @@ void client_apply_clip(Client *c, float factor) { client_get_clip(c, &clip_box); // 获取相对于父级的初始剪切区域 - monitor_clip_scene_tree(c->mon); - apply_border(c); apply_shield(c); @@ -347,8 +345,6 @@ void client_apply_clip(Client *c, float factor) { clip_box.y = 0; } - monitor_clip_scene_tree(c->mon); - apply_border(c); apply_shield(c); diff --git a/src/mango.c b/src/mango.c index 23e78d72..bfb6b5a4 100644 --- a/src/mango.c +++ b/src/mango.c @@ -3047,6 +3047,7 @@ void createmon(struct wl_listener *listener, void *data) { add_workspace_by_tag(i, m); } + monitor_clip_scene_tree(m); printstatus(); }