mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: close animation and actively apply to refresh
This commit is contained in:
parent
5e5c4d0316
commit
c6635d73a9
2 changed files with 6 additions and 0 deletions
|
|
@ -820,6 +820,9 @@ void init_fadeout_client(Client *c) {
|
|||
fadeout_cient->animation.duration / output_frame_duration_ms();
|
||||
wlr_scene_node_set_enabled(&fadeout_cient->scene->node, true);
|
||||
wl_list_insert(&fadeout_clients, &fadeout_cient->fadeout_link);
|
||||
|
||||
// 请求刷新屏幕
|
||||
wlr_output_schedule_frame(c->mon->wlr_output);
|
||||
}
|
||||
|
||||
void client_commit(Client *c) {
|
||||
|
|
|
|||
|
|
@ -450,6 +450,9 @@ void init_fadeout_layers(LayerSurface *l) {
|
|||
// 将节点插入到关闭动画链表中,屏幕刷新哪里会检查链表中是否有节点可以应用于动画
|
||||
wlr_scene_node_set_enabled(&fadeout_layer->scene->node, true);
|
||||
wl_list_insert(&fadeout_layers, &fadeout_layer->fadeout_link);
|
||||
|
||||
// 请求刷新屏幕
|
||||
wlr_output_schedule_frame(l->mon->wlr_output);
|
||||
}
|
||||
|
||||
void layer_set_pending_state(LayerSurface *l) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue