fix: only current monitor frame event to flush animaiton

This commit is contained in:
DreamMaoMao 2025-03-25 10:23:07 +08:00
parent 5c7dfa41b5
commit 1700ae40bf

View file

@ -4266,10 +4266,12 @@ void rendermon(struct wl_listener *listener, void *data) {
// Draw frames for all clients
wl_list_for_each(c, &clients, link) {
if(c->mon != m) continue;
need_more_frames = client_draw_frame(c) || need_more_frames;
}
wl_list_for_each_safe(c, tmp, &fadeout_clients, fadeout_link) {
if(c->mon != m) continue;
need_more_frames = client_draw_fadeout_frame(c) || need_more_frames;
}