[mutter] clutter/actor: Check for clones in update_default_paint_volume()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/actor: Check for clones in update_default_paint_volume()
- Date: Tue, 26 Jul 2022 22:32:39 +0000 (UTC)
commit e7a64db51aa2f5bc3e3f36c56e24ed86b51bea68
Author: Robert Mader <robert mader collabora com>
Date: Tue Jul 26 22:38:14 2022 +0200
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>
clutter/clutter/clutter-actor.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index d6c798647f..1a04a4f9f0 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -5769,7 +5769,9 @@ clutter_actor_update_default_paint_volume (ClutterActor *self,
* allocation, because apparently some code above Clutter allows
* 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;
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]