feat: add global option animation_fade_out

This commit is contained in:
DreamMaoMao 2025-06-07 09:17:42 +08:00
parent 0a9181ecb0
commit 2f61e14eeb
4 changed files with 10 additions and 3 deletions

View file

@ -959,7 +959,7 @@ void fadeout_client_animation_next_tick(Client *c) {
double opacity = MAX(fadeout_begin_opacity - animation_passed, 0);
if(!c->nofadeout)
if(animation_fade_out && !c->nofadeout)
wlr_scene_node_for_each_buffer(&c->scene->node, scene_buffer_apply_opacity,
&opacity);