[mutter/gnome-42] clutter/actor: Do not report hidden actors as present on stage view
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] clutter/actor: Do not report hidden actors as present on stage view
- Date: Sun, 16 Oct 2022 15:55:03 +0000 (UTC)
commit 3c35ff0f0519d77ce6b262a3f2607f657103d6e1
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>
(cherry picked from commit 07ec482e28c871c1f37e06bddd570aa888ec7afd)
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 0a08d18633..a3d540e68e 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -16129,6 +16129,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]