surface-actor-wayland: Do not send frame callbacks if the actor is obscured
`meta_surface_actor_is_obscured` implies that the actor got successfully culled out and nothing of it will get painted. This includes that there are no clones, no effects etc. In this cases we don't want to send frame callbacks, thus avoiding unnecessary client work. https://gitlab.gnome.org/GNOME/mutter/merge_requests/918
This commit is contained in:
@ -103,7 +103,8 @@ meta_surface_actor_wayland_paint (ClutterActor *actor)
|
|||||||
{
|
{
|
||||||
MetaSurfaceActorWayland *self = META_SURFACE_ACTOR_WAYLAND (actor);
|
MetaSurfaceActorWayland *self = META_SURFACE_ACTOR_WAYLAND (actor);
|
||||||
|
|
||||||
if (self->surface)
|
if (self->surface &&
|
||||||
|
!meta_surface_actor_is_obscured (META_SURFACE_ACTOR (actor)))
|
||||||
{
|
{
|
||||||
MetaWaylandCompositor *compositor = self->surface->compositor;
|
MetaWaylandCompositor *compositor = self->surface->compositor;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user