From 1b75a62030e73654fa92536b024b65528ec895d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 1 Feb 2023 17:54:19 +0100 Subject: [PATCH] wayland/surface: Add getter for MetaWaylandCompositor Part-of: --- src/wayland/meta-wayland-surface.c | 6 ++++++ src/wayland/meta-wayland-surface.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index eaf7346d6..624c86a05 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -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; +} diff --git a/src/wayland/meta-wayland-surface.h b/src/wayland/meta-wayland-surface.h index 339a71715..a183447fc 100644 --- a/src/wayland/meta-wayland-surface.h +++ b/src/wayland/meta-wayland-surface.h @@ -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) {