diff --git a/gdk/mir/gdkmir.h b/gdk/mir/gdkmir.h index 92476f634f..4339cccb3e 100644 --- a/gdk/mir/gdkmir.h +++ b/gdk/mir/gdkmir.h @@ -39,6 +39,9 @@ MirConnection *gdk_mir_display_get_mir_connection (GdkDisplay *display); GDK_AVAILABLE_IN_3_10 GType gdk_mir_window_get_type (void); +GDK_AVAILABLE_IN_3_16 +MirSurface *gdk_mir_window_get_mir_surface (GdkWindow *window); + GDK_AVAILABLE_IN_3_16 GType gdk_mir_gl_context_get_type (void) G_GNUC_CONST; diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c index aa029f5e4a..57cd70d0f9 100644 --- a/gdk/mir/gdkmirwindowimpl.c +++ b/gdk/mir/gdkmirwindowimpl.c @@ -1519,6 +1519,18 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window, return impl->dummy_egl_surface; } +MirSurface * +gdk_mir_window_get_mir_surface (GdkWindow *window) +{ + GdkMirWindowImpl *impl; + + g_return_val_if_fail (GDK_IS_WINDOW_MIR (window), NULL); + + impl = GDK_MIR_WINDOW_IMPL (window->impl); + + return impl->surface; +} + static void gdk_mir_window_impl_class_init (GdkMirWindowImplClass *klass) {