fix: only current monitor frame event to flush animaiton

This commit is contained in:
DreamMaoMao 2025-03-25 10:23:07 +08:00
parent 1129be616d
commit 5d2d5f7b2f

View file

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