commit c6daffdc4667e0396be62993409d5490f3e05252
parent e1f849858b43c2092fec476a74dd4a6b19435dec
Author: Michael Forney <mforney@mforney.org>
Date: Sat, 16 Aug 2014 12:51:05 -0700
compositor: Add comment about update logic
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libswc/compositor.c b/libswc/compositor.c
@@ -131,7 +131,9 @@ static void handle_screen_frame(struct view_handler * handler, uint32_t time)
target->current_buffer = target->next_buffer;
/* If we had scheduled updates that couldn't run because we were
- * waiting on a page flip, run them now. */
+ * waiting on a page flip, run them now. If the compositor is
+ * currently updating, then the frame finished immediately, and we
+ * can be sure that there are no pending updates. */
if (compositor.scheduled_updates && !compositor.updating)
perform_update(NULL);
}