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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2024-07-03 06:55:05 -05:00
parent dbf408791c
commit 05f199feea

View File

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