compositor/native: Don't allow obscured surface actors as scanout candidates
This check was previously done after it was already determined that a surface actor is suitable for scanout. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2526>
This commit is contained in:
parent
259a9998d8
commit
66e938bc34
@ -119,6 +119,9 @@ maybe_assign_primary_plane (MetaCompositor *compositor)
|
||||
if (!surface_actor)
|
||||
goto done;
|
||||
|
||||
if (meta_surface_actor_is_obscured (surface_actor))
|
||||
goto done;
|
||||
|
||||
surface_actor_wayland = META_SURFACE_ACTOR_WAYLAND (surface_actor);
|
||||
surface = meta_surface_actor_wayland_get_surface (surface_actor_wayland);
|
||||
if (!surface)
|
||||
|
@ -72,12 +72,6 @@ meta_surface_actor_wayland_try_acquire_scanout (MetaSurfaceActorWayland *self,
|
||||
MetaWaylandSurface *surface;
|
||||
CoglScanout *scanout;
|
||||
|
||||
/* If the actor appears to be obscured, need to go through the normal paint
|
||||
* machinery to ensure the unobscured region is up to date
|
||||
*/
|
||||
if (meta_surface_actor_is_obscured (META_SURFACE_ACTOR (self)))
|
||||
return NULL;
|
||||
|
||||
surface = meta_surface_actor_wayland_get_surface (self);
|
||||
g_return_val_if_fail (surface, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user