wayland/compositor: Add API to get wl_display

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>
This commit is contained in:
Jonas Ådahl 2023-01-27 15:15:15 +01:00 committed by Marge Bot
parent 63c8c229d6
commit 192401dee5
2 changed files with 7 additions and 0 deletions

View File

@ -855,3 +855,9 @@ meta_wayland_compositor_is_grabbed (MetaWaylandCompositor *compositor)
{ {
return meta_wayland_seat_is_grabbed (compositor->seat); return meta_wayland_seat_is_grabbed (compositor->seat);
} }
struct wl_display *
meta_wayland_compositor_get_wayland_display (MetaWaylandCompositor *compositor)
{
return compositor->wayland_display;
}

View File

@ -102,6 +102,7 @@ MetaXWaylandManager * meta_wayland_compositor_get_xwayland_manager (MetaWaylan
META_EXPORT_TEST META_EXPORT_TEST
MetaContext * meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor); MetaContext * meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor);
struct wl_display * meta_wayland_compositor_get_wayland_display (MetaWaylandCompositor *compositor);
gboolean meta_wayland_compositor_is_grabbed (MetaWaylandCompositor *compositor); gboolean meta_wayland_compositor_is_grabbed (MetaWaylandCompositor *compositor);