[mutter] clutter/actor: Do not report hidden actors as present on stage view



commit 07ec482e28c871c1f37e06bddd570aa888ec7afd
Author: Robert Mader <robert mader posteo de>
Date:   Sat Oct 15 21:31:47 2022 +0200

    clutter/actor: Do not report hidden actors as present on stage view
    
    The stage view list does not get updated when an actor gets hidden in
    order to avoid unnecessary work, such as scale changes. However, we
    still want `is_effectively_on_stage_view` to report `FALSE` in this
    case.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2662>

 clutter/clutter/clutter-actor.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 117a775ea1..5e25bfba45 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -15715,6 +15715,10 @@ clutter_actor_is_effectively_on_stage_view (ClutterActor     *self,
 
   g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
 
+  if (!CLUTTER_ACTOR_IS_MAPPED (self) &&
+      !clutter_actor_has_mapped_clones (self))
+    return FALSE;
+
   if (g_list_find (self->priv->stage_views, view))
     return TRUE;
 


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