Use wlr_scene_output_send_frame_done

This commit is contained in:
Simon Ser 2021-12-13 16:26:13 +01:00 committed by Jente Hidskes
parent 7a7325c0ee
commit 77a3f6bb0c

View file

@ -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