From 05f199feea76ce058a609e2e0cd89d2a572ab083 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 3 Jul 2024 06:55:05 -0500 Subject: [PATCH] libweston: Move idle_animation_destroy to before frame handler No functional change, we'll just need this function earlier in a later commit. Signed-off-by: Derek Foreman --- libweston/animation.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libweston/animation.c b/libweston/animation.c index 17aeb353b..cc3dd76aa 100644 --- a/libweston/animation.c +++ b/libweston/animation.c @@ -167,6 +167,14 @@ handle_animation_view_destroy(struct wl_listener *listener, void *data) weston_view_animation_destroy(animation); } +static void +idle_animation_destroy(void *data) +{ + struct weston_view_animation *animation = data; + + weston_view_animation_destroy(animation); +} + static void weston_view_animation_frame(struct weston_animation *base, struct weston_output *output, @@ -209,14 +217,6 @@ weston_view_animation_frame(struct weston_animation *base, weston_compositor_schedule_repaint(compositor); } -static void -idle_animation_destroy(void *data) -{ - struct weston_view_animation *animation = data; - - weston_view_animation_destroy(animation); -} - static struct weston_view_animation * weston_view_animation_create(struct weston_view *view, float start, float stop,