opt: optimize animaiton frame fresh

This commit is contained in:
DreamMaoMao
2025-11-01 19:24:37 +08:00
parent 3ed36a6ea6
commit 78f7cb40c7
3 changed files with 14 additions and 3 deletions

View File

@@ -234,4 +234,14 @@ struct wlr_scene_tree *wlr_scene_tree_snapshot(struct wlr_scene_node *node,
wlr_scene_node_set_enabled(&snapshot->node, true);
return snapshot;
}
void request_fresh_all_monitors(void) {
Monitor *m = NULL;
wl_list_for_each(m, &mons, link) {
if (!m->wlr_output->enabled) {
continue;
}
wlr_output_schedule_frame(m->wlr_output);
}
}