wayland/compositor: Add MetaContext getter

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2546>
This commit is contained in:
Jonas Ådahl 2022-08-01 21:18:42 +02:00 committed by Marge Bot
parent a73ae93d59
commit bd4dd6b1e8
2 changed files with 8 additions and 0 deletions

View File

@ -837,3 +837,9 @@ meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor)
{ {
return &compositor->xwayland_manager; return &compositor->xwayland_manager;
} }
MetaContext *
meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor)
{
return compositor->context;
}

View File

@ -97,5 +97,7 @@ void meta_wayland_compositor_notify_surface_id (MetaWaylandCo
META_EXPORT_TEST META_EXPORT_TEST
MetaXWaylandManager * meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor); MetaXWaylandManager * meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor);
MetaContext * meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor);
#endif #endif