feat: support set begin opacity of fadeout

This commit is contained in:
DreamMaoMao 2025-02-24 18:31:22 +08:00
parent 9df9ada7d9
commit fda94aefa7
4 changed files with 10 additions and 3 deletions

View file

@ -747,7 +747,7 @@ void fadeout_client_animation_next_tick(Client *c) {
.height = height,
};
double opacity = MAX(1 - 0.4 - animation_passed, 0);
double opacity = MAX(fadeout_begin_opacity - animation_passed, 0);
wlr_scene_node_for_each_buffer(&c->snapshot_scene->node,
scene_buffer_apply_opacity, &opacity);