Add frame scheduler interface

This commit is contained in:
Rose Hudson 2023-07-21 19:28:06 +01:00
parent 34219b0334
commit 9b4acb157e
5 changed files with 238 additions and 0 deletions

View file

@ -766,6 +766,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) {