wayland: Make the MetaWaylandCompositor type public

Allows mutter implementation to have access to the underlying wl_display.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3092>
This commit is contained in:
Corentin Noël
2023-06-26 16:08:08 +02:00
committed by Marge Bot
parent 86b77f65e7
commit 6b9efc3b0c
7 changed files with 65 additions and 10 deletions

View File

@ -242,6 +242,16 @@ meta_context_get_display (MetaContext *context)
}
#ifdef HAVE_WAYLAND
/**
* meta_context_get_wayland_compositor:
* @context: The #MetaContext
*
* Get the #MetaWaylandCompositor associated with the MetaContext. The might be
* none currently associated if the context hasn't been started or if the
* requested compositor type is not %META_COMPOSITOR_TYPE_WAYLAND.
*
* Returns: (transfer none) (nullable): the #MetaWaylandCompositor
*/
MetaWaylandCompositor *
meta_context_get_wayland_compositor (MetaContext *context)
{