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