diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c index 338812625..a9d297ade 100644 --- a/clutter/wayland/clutter-wayland-surface.c +++ b/clutter/wayland/clutter-wayland-surface.c @@ -213,7 +213,14 @@ set_size (ClutterWaylandSurface *self, } } -static void +struct wl_surface * +clutter_wayland_surface_get_surface (ClutterWaylandSurface *self) +{ + ClutterWaylandSurfacePrivate *priv = self->priv; + return priv->surface; +} + +void clutter_wayland_surface_set_surface (ClutterWaylandSurface *self, struct wl_surface *surface) { diff --git a/clutter/wayland/clutter-wayland-surface.h b/clutter/wayland/clutter-wayland-surface.h index d06eb7367..3786b548c 100644 --- a/clutter/wayland/clutter-wayland-surface.h +++ b/clutter/wayland/clutter-wayland-surface.h @@ -81,6 +81,7 @@ GType clutter_wayland_surface_get_type (void) G_GNUC_CONST; ClutterActor *clutter_wayland_surface_new (struct wl_surface *surface); void clutter_wayland_surface_set_surface (ClutterWaylandSurface *self, struct wl_surface *surface); +struct wl_surface *clutter_wayland_surface_get_surface (ClutterWaylandSurface *self); gboolean clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self, struct wl_buffer *buffer, GError **error);