mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-28 07:58:47 -04:00
opt: optimize layer animaiton frame count in multi monitor
This commit is contained in:
parent
cd3689d557
commit
f712917159
4 changed files with 10 additions and 6 deletions
|
|
@ -820,7 +820,7 @@ void init_fadeout_client(Client *c) {
|
|||
|
||||
fadeout_cient->animation.passed_frames = 0;
|
||||
fadeout_cient->animation.total_frames =
|
||||
fadeout_cient->animation.duration / output_frame_duration_ms();
|
||||
fadeout_cient->animation.duration / all_output_frame_duration_ms();
|
||||
wlr_scene_node_set_enabled(&fadeout_cient->scene->node, true);
|
||||
wl_list_insert(&fadeout_clients, &fadeout_cient->fadeout_link);
|
||||
|
||||
|
|
@ -840,7 +840,7 @@ void client_commit(Client *c) {
|
|||
// 设置动画速度
|
||||
c->animation.passed_frames = 0;
|
||||
c->animation.total_frames =
|
||||
c->animation.duration / output_frame_duration_ms();
|
||||
c->animation.duration / all_output_frame_duration_ms();
|
||||
|
||||
// 标记动画开始
|
||||
c->animation.running = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue