mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
wayland/surface: Add getter for the surface wl_resource
Meant to avoid dereferencing the MetaWaylandSurface struct directly. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
parent
5d888f2df6
commit
a2f93e76a3
@ -2323,3 +2323,9 @@ meta_wayland_surface_get_geometry_scale (MetaWaylandSurface *surface)
|
||||
actor_surface = META_WAYLAND_ACTOR_SURFACE (surface->role);
|
||||
return meta_wayland_actor_surface_get_geometry_scale (actor_surface);
|
||||
}
|
||||
|
||||
struct wl_resource *
|
||||
meta_wayland_surface_get_resource (MetaWaylandSurface *surface)
|
||||
{
|
||||
return surface->resource;
|
||||
}
|
||||
|
@ -393,6 +393,9 @@ meta_wayland_surface_can_scanout_untransformed (MetaWaylandSurface *surface,
|
||||
|
||||
int meta_wayland_surface_get_geometry_scale (MetaWaylandSurface *surface);
|
||||
|
||||
META_EXPORT_TEST
|
||||
struct wl_resource * meta_wayland_surface_get_resource (MetaWaylandSurface *surface);
|
||||
|
||||
static inline MetaWaylandSurfaceState *
|
||||
meta_wayland_surface_state_new (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user