wayland/surface: Add getter for MetaWaylandCompositor

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
Jonas Ådahl 2023-02-01 17:54:19 +01:00 committed by Marge Bot
parent 1282f4668f
commit 1b75a62030
2 changed files with 8 additions and 0 deletions

View File

@ -2329,3 +2329,9 @@ meta_wayland_surface_get_resource (MetaWaylandSurface *surface)
{
return surface->resource;
}
MetaWaylandCompositor *
meta_wayland_surface_get_compositor (MetaWaylandSurface *surface)
{
return surface->compositor;
}

View File

@ -396,6 +396,8 @@ int meta_wayland_surface_get_geometry_scale (MetaWaylandSurface *surface);
META_EXPORT_TEST
struct wl_resource * meta_wayland_surface_get_resource (MetaWaylandSurface *surface);
MetaWaylandCompositor * meta_wayland_surface_get_compositor (MetaWaylandSurface *surface);
static inline MetaWaylandSurfaceState *
meta_wayland_surface_state_new (void)
{