From 746bd490f5faea02063f0202d2c40d6c4d51ec71 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 13 Dec 2021 16:26:13 +0100 Subject: [PATCH] Use wlr_scene_output_send_frame_done --- output.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/output.c b/output.c index 81539af..989e5b9 100644 --- a/output.c +++ b/output.c @@ -43,18 +43,6 @@ #include "xwayland.h" #endif -static void -send_frame_done_iterator(struct wlr_surface *surface, int lx, int ly, void *user_data) -{ - const struct timespec *t = user_data; - - if (!wlr_surface_has_buffer(surface)) { - return; - } - - wlr_surface_send_frame_done(surface, t); -} - static void output_enable(struct cg_output *output) { @@ -110,7 +98,7 @@ handle_output_frame(struct wl_listener *listener, void *data) struct timespec now = {0}; clock_gettime(CLOCK_MONOTONIC, &now); - wlr_scene_output_for_each_surface(output->scene_output, send_frame_done_iterator, &now); + wlr_scene_output_send_frame_done(output->scene_output, &now); } static void