From ac5a3d9c64e658a07a132b355f81342a367c86aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 3 Sep 2022 22:50:42 +0200 Subject: [PATCH] st/widget: Remove transitions when unmapped This avoids having animating timelines on invisible and detached actors. This also silences some warnings about the timeline being running without being attached to the stage. Part-of: (cherry picked from commit 210754f1e96448b9007670d3b71ec4b2f241a600) --- src/st/st-widget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 92d6456a1..31c400bfa 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -494,6 +494,8 @@ st_widget_unmap (ClutterActor *actor) CLUTTER_ACTOR_CLASS (st_widget_parent_class)->unmap (actor); + st_widget_remove_transition (self); + if (priv->track_hover && priv->hover) st_widget_set_hover (self, FALSE); }