去掉边框淡化透明

This commit is contained in:
DreamMaoMao 2025-02-24 19:58:27 +08:00
parent 895c879f98
commit abf1208073

View file

@ -721,6 +721,7 @@ double find_animation_curve_at(double t) {
return baked_points[up].y; return baked_points[up].y;
} }
// 有 bug,只是让上面那根透明了
void apply_opacity_to_rect_nodes(struct wlr_scene_node *node, double opacity) { void apply_opacity_to_rect_nodes(struct wlr_scene_node *node, double opacity) {
if (node->type == WLR_SCENE_NODE_RECT) { if (node->type == WLR_SCENE_NODE_RECT) {
struct wlr_scene_rect *rect = wlr_scene_rect_from_node(node); 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, wlr_scene_node_for_each_buffer(&c->snapshot_scene->node,
scene_buffer_apply_opacity, &opacity); 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) { if (animation_passed == 1.0) {
wl_list_remove(&c->fadeout_link); wl_list_remove(&c->fadeout_link);