From bd4dd6b1e89d21b7098b8b476ecf6a282d0d8673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 1 Aug 2022 21:18:42 +0200 Subject: [PATCH] wayland/compositor: Add MetaContext getter Part-of: --- src/wayland/meta-wayland.c | 6 ++++++ src/wayland/meta-wayland.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c index 4cc2248d3..ec7a55aaa 100644 --- a/src/wayland/meta-wayland.c +++ b/src/wayland/meta-wayland.c @@ -837,3 +837,9 @@ meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor) { return &compositor->xwayland_manager; } + +MetaContext * +meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor) +{ + return compositor->context; +} diff --git a/src/wayland/meta-wayland.h b/src/wayland/meta-wayland.h index 6528a02ba..901faaed1 100644 --- a/src/wayland/meta-wayland.h +++ b/src/wayland/meta-wayland.h @@ -97,5 +97,7 @@ void meta_wayland_compositor_notify_surface_id (MetaWaylandCo META_EXPORT_TEST MetaXWaylandManager * meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor); +MetaContext * meta_wayland_compositor_get_context (MetaWaylandCompositor *compositor); + #endif