wayland/surface: Add getter for MetaWaylandCompositor
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
parent
1282f4668f
commit
1b75a62030
@ -2329,3 +2329,9 @@ meta_wayland_surface_get_resource (MetaWaylandSurface *surface)
|
|||||||
{
|
{
|
||||||
return surface->resource;
|
return surface->resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaWaylandCompositor *
|
||||||
|
meta_wayland_surface_get_compositor (MetaWaylandSurface *surface)
|
||||||
|
{
|
||||||
|
return surface->compositor;
|
||||||
|
}
|
||||||
|
@ -396,6 +396,8 @@ int meta_wayland_surface_get_geometry_scale (MetaWaylandSurface *surface);
|
|||||||
META_EXPORT_TEST
|
META_EXPORT_TEST
|
||||||
struct wl_resource * meta_wayland_surface_get_resource (MetaWaylandSurface *surface);
|
struct wl_resource * meta_wayland_surface_get_resource (MetaWaylandSurface *surface);
|
||||||
|
|
||||||
|
MetaWaylandCompositor * meta_wayland_surface_get_compositor (MetaWaylandSurface *surface);
|
||||||
|
|
||||||
static inline MetaWaylandSurfaceState *
|
static inline MetaWaylandSurfaceState *
|
||||||
meta_wayland_surface_state_new (void)
|
meta_wayland_surface_state_new (void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user