mir: add public getter for the internal MirSurface

This commit is contained in:
Marco Trevisan (Treviño) 2014-11-20 04:41:45 +01:00
parent 60e185e496
commit 99d849412b
2 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -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)
{