fix: not need clip monitor scene in every animation frame

This commit is contained in:
DreamMaoMao 2026-02-27 16:28:08 +08:00
parent 4ed671d30a
commit 9e3ac1ef5c
2 changed files with 1 additions and 4 deletions

View file

@ -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);

View file

@ -3047,6 +3047,7 @@ void createmon(struct wl_listener *listener, void *data) {
add_workspace_by_tag(i, m);
}
monitor_clip_scene_tree(m);
printstatus();
}