output: add comment about needs_frame in wlr_output_schedule_frame

Add a comment to not forget why this call is necessary.

References: https://github.com/swaywm/wlroots/pull/2053
This commit is contained in:
Simon Ser 2020-03-12 14:53:22 +01:00 committed by Drew DeVault
parent 41f9916ae5
commit 07737e85cc
1 changed files with 3 additions and 0 deletions

View File

@ -621,6 +621,9 @@ static void schedule_frame_handle_idle_timer(void *data) {
} }
void wlr_output_schedule_frame(struct wlr_output *output) { 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.
wlr_output_update_needs_frame(output); wlr_output_update_needs_frame(output);
if (output->frame_pending || output->idle_frame != NULL) { if (output->frame_pending || output->idle_frame != NULL) {