diff options
author | Sebastian Keller <skeller@gnome.org> | 2022-05-11 22:32:33 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-05-17 10:34:20 +0000 |
commit | 9c8948fc047b8b99908a548a390f2acd1ccf8a55 (patch) | |
tree | 0cf39209bacdc3238f19c6ca0d2a2e41c27c8e9e /src/compositor/meta-window-actor.c | |
parent | 75ec27966d11cdbd83a64128aba032d386633b11 (diff) | |
download | mutter-9c8948fc047b8b99908a548a390f2acd1ccf8a55.tar.gz |
window-actor: Add API to get the surface actor candidate for scanout
This replaces the API to get the topmost surface actor with an API to
get the surface actor that could be a candidate for direct scanout. The
advantage of this is that it allows X11 and Wayland specific
restrictions for these actors.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2409>
Diffstat (limited to 'src/compositor/meta-window-actor.c')
-rw-r--r-- | src/compositor/meta-window-actor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 9cee56a37..ae1fa4d90 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -107,7 +107,7 @@ static void meta_window_actor_get_property (GObject *object, GValue *value, GParamSpec *pspec); -static MetaSurfaceActor * meta_window_actor_real_get_topmost_surface (MetaWindowActor *self); +static MetaSurfaceActor * meta_window_actor_real_get_scanout_candidate (MetaWindowActor *self); static void meta_window_actor_real_assign_surface_actor (MetaWindowActor *self, MetaSurfaceActor *surface_actor); @@ -132,7 +132,7 @@ meta_window_actor_class_init (MetaWindowActorClass *klass) object_class->get_property = meta_window_actor_get_property; object_class->constructed = meta_window_actor_constructed; - klass->get_topmost_surface = meta_window_actor_real_get_topmost_surface; + klass->get_scanout_candidate = meta_window_actor_real_get_scanout_candidate; klass->assign_surface_actor = meta_window_actor_real_assign_surface_actor; /** @@ -560,15 +560,15 @@ meta_window_actor_get_surface (MetaWindowActor *self) } static MetaSurfaceActor * -meta_window_actor_real_get_topmost_surface (MetaWindowActor *self) +meta_window_actor_real_get_scanout_candidate (MetaWindowActor *self) { - return meta_window_actor_get_surface (self); + return NULL; } MetaSurfaceActor * -meta_window_actor_get_topmost_surface (MetaWindowActor *self) +meta_window_actor_get_scanout_candidate (MetaWindowActor *self) { - return META_WINDOW_ACTOR_GET_CLASS (self)->get_topmost_surface (self); + return META_WINDOW_ACTOR_GET_CLASS (self)->get_scanout_candidate (self); } /** |