Add frame scheduler interface

This commit is contained in:
Rose Hudson 2023-07-21 19:28:06 +01:00 committed by Kenny Levinsen
parent c66a910753
commit 98cbf09f8a
5 changed files with 240 additions and 0 deletions

View file

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