From 21c15c07dd71b2a8636955b89cbc3d411b857b78 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 3 Jul 2025 09:54:44 +0800 Subject: [PATCH] opt: optimize layer geom set --- src/maomao.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 18c769d..a93217f 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -3299,7 +3299,10 @@ void maplayersurfacenotify(struct wl_listener *listener, void *data) { if (animations && layer_animations && !l->noanim) { l->need_output_flush = true; l->animation.action = OPEN; - l->geom = box; + l->geom.x = box.x; + l->geom.y = box.y; + l->geom.width = box.width; + l->geom.height = box.height; layer_set_pending_state(l); } // 刷新布局,让窗口能感应到exclude_zone变化以及设置独占表面