From abf12080739338912bbf600e89cd9d6d0e808e46 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 24 Feb 2025 19:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=BE=B9=E6=A1=86=E6=B7=A1?= =?UTF-8?q?=E5=8C=96=E9=80=8F=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index 0f2ccecc..a838cfa0 100644 --- a/maomao.c +++ b/maomao.c @@ -721,6 +721,7 @@ double find_animation_curve_at(double t) { return baked_points[up].y; } +// 有 bug,只是让上面那根透明了 void apply_opacity_to_rect_nodes(struct wlr_scene_node *node, double opacity) { if (node->type == WLR_SCENE_NODE_RECT) { struct wlr_scene_rect *rect = wlr_scene_rect_from_node(node); @@ -769,7 +770,7 @@ void fadeout_client_animation_next_tick(Client *c) { wlr_scene_node_for_each_buffer(&c->snapshot_scene->node, scene_buffer_apply_opacity, &opacity); - apply_opacity_to_rect_nodes(&c->snapshot_scene->node, opacity); + // apply_opacity_to_rect_nodes(&c->snapshot_scene->node, opacity); if (animation_passed == 1.0) { wl_list_remove(&c->fadeout_link);