From 31e44c01b454ca2938e856c0f07dce2f9a665be3 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Fri, 1 Dec 2017 07:15:34 -0500 Subject: send callbacks with send_frame_done --- sway/desktop/output.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sway/desktop/output.c') diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 169b044b..6b9822c1 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -72,12 +72,7 @@ static void output_frame_view(swayc_t *view, void *data) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - struct wlr_frame_callback *cb, *cnext; - wl_list_for_each_safe(cb, cnext, - &surface->current->frame_callback_list, link) { - wl_callback_send_done(cb->resource, timespec_to_msec(&now)); - wl_resource_destroy(cb->resource); - } + wlr_surface_send_frame_done(surface, &now); } static void output_frame_notify(struct wl_listener *listener, void *data) { -- cgit v1.2.3