opt: ensure auto schedule next frame when animaiton not end

This commit is contained in:
DreamMaoMao 2026-01-04 07:18:04 +08:00
parent 2db71e02ba
commit 2957145b84
4 changed files with 35 additions and 10 deletions

View file

@ -712,8 +712,7 @@ void init_fadeout_client(Client *c) {
wl_list_insert(&fadeout_clients, &fadeout_cient->fadeout_link);
// 请求刷新屏幕
if (c->mon)
wlr_output_schedule_frame(c->mon->wlr_output);
request_fresh_all_monitors();
}
void client_commit(Client *c) {
@ -732,8 +731,7 @@ void client_commit(Client *c) {
c->animation.should_animate = false;
}
// 请求刷新屏幕
if (c->mon)
wlr_output_schedule_frame(c->mon->wlr_output);
request_fresh_all_monitors();
}
void client_set_pending_state(Client *c) {