aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-12 14:53:22 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-12 15:01:09 +0100
commit07737e85cc21731ff562c2fc9f4092a246414d4e (patch)
tree8a2a1b3af73261f947835b855421b49cdc51b716
parent41f9916ae59e8fc06e4e00dd3fc9b57baf5ed537 (diff)
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
-rw-r--r--types/wlr_output.c3
1 files changed, 3 insertions, 0 deletions
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) {