From 4079afe0c75c51ca9b5d387521ac11cf4e1dcf96 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sat, 15 Oct 2022 21:36:32 +0200 Subject: [PATCH] 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: --- 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 329b88e4e..b58f328dc 100644 --- a/src/compositor/meta-surface-actor-wayland.c +++ b/src/compositor/meta-surface-actor-wayland.c @@ -99,7 +99,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; } }