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>
This commit is contained in:
parent
07ec482e28
commit
4079afe0c7
@ -99,7 +99,9 @@ meta_surface_actor_wayland_get_current_primary_view (MetaSurfaceActor *actor,
|
|||||||
}
|
}
|
||||||
else
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user