From 07737e85cc21731ff562c2fc9f4092a246414d4e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 12 Mar 2020 14:53:22 +0100 Subject: [PATCH] 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 --- types/wlr_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/wlr_output.c b/types/wlr_output.c index 580488be..f9edd29a 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -621,6 +621,9 @@ static void schedule_frame_handle_idle_timer(void *data) { } 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); if (output->frame_pending || output->idle_frame != NULL) {