[mutter/gnome-42] surface-actor-wayland: Fix assumption in get_current_primary_view
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] surface-actor-wayland: Fix assumption in get_current_primary_view
- Date: Sun, 16 Oct 2022 15:55:03 +0000 (UTC)
commit 8bb43ca6c9f68cd1c52f761dd170c9fa368b8bab
Author: Robert Mader <robert mader posteo de>
Date: Sat Oct 15 21:36:32 2022 +0200
surface-actor-wayland: Fix assumption in get_current_primary_view
Unlike the multi-view path, the optimized/single-view one doesn't check
if the surface-actor is really present on the view. That is the case
whenever it's hidden - e.g. when the window is minimized.
Fixes 3b7137cb359
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2662>
(cherry picked from commit 4079afe0c75c51ca9b5d387521ac11cf4e1dcf96)
src/compositor/meta-surface-actor-wayland.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/compositor/meta-surface-actor-wayland.c b/src/compositor/meta-surface-actor-wayland.c
index 1dad50cd78..ef2c9c2426 100644
--- a/src/compositor/meta-surface-actor-wayland.c
+++ b/src/compositor/meta-surface-actor-wayland.c
@@ -122,7 +122,9 @@ meta_surface_actor_wayland_get_current_primary_view (MetaSurfaceActor *actor,
}
else
{
- if (meta_surface_actor_is_obscured (actor))
+ if (meta_surface_actor_is_obscured (actor) ||
+ !clutter_actor_is_effectively_on_stage_view (CLUTTER_ACTOR (actor),
+ stage_view))
continue;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]