add frame scheduler interface

This commit is contained in:
Rose Hudson 2023-07-21 19:28:06 +01:00
parent fc4e18f9ae
commit c515813fd6
5 changed files with 214 additions and 0 deletions

View file

@ -881,6 +881,7 @@ void wlr_output_schedule_frame(struct wlr_output *output) {
// Make sure the compositor commits a new frame. This is necessary to make
// clients which ask for frame callbacks without submitting a new buffer
// work.
// TODO(rose): figure out why
wlr_output_update_needs_frame(output);
if (output->frame_pending || output->idle_frame != NULL) {