[mutter] clutter/actor: Check for clones in finish_layout()



commit b64d6997093eeee8e37515982fd2d9f4f0dd42e1
Author: Robert Mader <robert mader posteo de>
Date:   Mon Jul 25 21:48:02 2022 +0200

    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>

 clutter/clutter/clutter-actor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 0e0d622bdf..d6c798647f 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]