clutter/actor: Check for clones in finish_layout()

This does not fix any known bug but should help ensuring correctness
when clones are used.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2530>
This commit is contained in:
Robert Mader 2022-07-25 21:48:02 +02:00 committed by Marge Bot
parent 01b96d6674
commit b64d699709

View File

@ -16030,7 +16030,8 @@ clutter_actor_finish_layout (ClutterActor *self,
ClutterActorPrivate *priv = self->priv;
ClutterActor *child;
if (!CLUTTER_ACTOR_IS_MAPPED (self) ||
if ((!CLUTTER_ACTOR_IS_MAPPED (self) &&
!clutter_actor_has_mapped_clones (self)) ||
CLUTTER_ACTOR_IN_DESTRUCTION (self))
return;