mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
feat: support set begin opacity of fadeout
This commit is contained in:
parent
9df9ada7d9
commit
fda94aefa7
4 changed files with 10 additions and 3 deletions
2
maomao.c
2
maomao.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue