forked from AuroraMiddleware/gtk
GtkStyleContext: Do not cancel possibly unstarted transitions
It might happen that this overcautious check is done on an animation that didn't have time to gather invalidation rectangles.
This commit is contained in:
parent
733cb5e43d
commit
d5b0ccacce
@ -3143,13 +3143,8 @@ _gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
|
|||||||
if (info->invalidation_region)
|
if (info->invalidation_region)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* There's not much point in keeping the animation running */
|
|
||||||
if (info->rectangles->len == 0)
|
if (info->rectangles->len == 0)
|
||||||
{
|
|
||||||
priv->animations = g_slist_remove (priv->animations, info);
|
|
||||||
animation_info_free (info);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
info->invalidation_region = cairo_region_create ();
|
info->invalidation_region = cairo_region_create ();
|
||||||
_gtk_widget_get_translation_to_window (widget, info->window, &rel_x, &rel_y);
|
_gtk_widget_get_translation_to_window (widget, info->window, &rel_x, &rel_y);
|
||||||
|
Loading…
Reference in New Issue
Block a user