clutter/actor: Check for clones in update_default_paint_volume()

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-26 22:38:14 +02:00 committed by Marge Bot
parent b64d699709
commit e7a64db51a

View File

@ -5769,7 +5769,9 @@ clutter_actor_update_default_paint_volume (ClutterActor *self,
* allocation, because apparently some code above Clutter allows * allocation, because apparently some code above Clutter allows
* them. * them.
*/ */
if (!CLUTTER_ACTOR_IS_MAPPED (child) || !clutter_actor_has_allocation (child)) if ((!CLUTTER_ACTOR_IS_MAPPED (child) &&
!clutter_actor_has_mapped_clones (child)) ||
!clutter_actor_has_allocation (child))
continue; continue;
child_volume = clutter_actor_get_transformed_paint_volume (child, self); child_volume = clutter_actor_get_transformed_paint_volume (child, self);