forked from AuroraMiddleware/gtk
mir: add public getter for the internal MirSurface
This commit is contained in:
parent
60e185e496
commit
99d849412b
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user