mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
clutter/actor: Properly detect uninitialized allocations when easing
Now that we have a proper way to mark our allocation as uninitialized, make use of that and only disallow implicit transitions of the "allocation" property if that is the case. This fixes a bug where easing the allocation of an actor is impossible when someone queued a relayout on it (or a child of it) before. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1290
This commit is contained in:
parent
eb9cd3857d
commit
620dcf3364
@ -19381,7 +19381,8 @@ should_skip_implicit_transition (ClutterActor *self,
|
||||
* skip all transitions on the :allocation, to avoid actors "flying in"
|
||||
* into their new position and size
|
||||
*/
|
||||
if (pspec == obj_props[PROP_ALLOCATION] && priv->needs_allocation)
|
||||
if (pspec == obj_props[PROP_ALLOCATION] &&
|
||||
!clutter_actor_box_is_initialized (&priv->allocation))
|
||||
return TRUE;
|
||||
|
||||
/* if the actor is not mapped and is not part of a branch of the scene
|
||||
|
Loading…
Reference in New Issue
Block a user