[mutter/gnome-42] wayland: Add getter for XWayland manager object
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] wayland: Add getter for XWayland manager object
- Date: Thu, 2 Jun 2022 08:46:30 +0000 (UTC)
commit 20c4843fbba40e92b06f5b936794f34f0d88f89b
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Apr 5 23:43:38 2022 +0200
wayland: Add getter for XWayland manager object
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2364>
src/wayland/meta-wayland-private.h | 4 ++--
src/wayland/meta-wayland-types.h | 2 ++
src/wayland/meta-wayland.c | 6 ++++++
src/wayland/meta-wayland.h | 3 +++
4 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-private.h b/src/wayland/meta-wayland-private.h
index b0cb38ab4c..12e9b40a40 100644
--- a/src/wayland/meta-wayland-private.h
+++ b/src/wayland/meta-wayland-private.h
@@ -52,7 +52,7 @@ typedef struct
char *name;
} MetaXWaylandConnection;
-typedef struct
+struct _MetaXWaylandManager
{
MetaXWaylandConnection private_connection;
MetaXWaylandConnection public_connection;
@@ -73,7 +73,7 @@ typedef struct
gboolean has_xrandr;
int rr_event_base;
int rr_error_base;
-} MetaXWaylandManager;
+};
struct _MetaWaylandCompositor
{
diff --git a/src/wayland/meta-wayland-types.h b/src/wayland/meta-wayland-types.h
index b2c8615a55..541636e5fe 100644
--- a/src/wayland/meta-wayland-types.h
+++ b/src/wayland/meta-wayland-types.h
@@ -65,4 +65,6 @@ typedef struct _MetaWaylandActivation MetaWaylandActivation;
typedef struct _MetaWaylandDmaBufManager MetaWaylandDmaBufManager;
+typedef struct _MetaXWaylandManager MetaXWaylandManager;
+
#endif
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 856b819cd8..14d0cff5b9 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -820,3 +820,9 @@ meta_wayland_compositor_is_egl_display_bound (MetaWaylandCompositor *compositor)
return priv->is_wayland_egl_display_bound;
}
+
+MetaXWaylandManager *
+meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor)
+{
+ return &compositor->xwayland_manager;
+}
diff --git a/src/wayland/meta-wayland.h b/src/wayland/meta-wayland.h
index bee2ef4455..6528a02baa 100644
--- a/src/wayland/meta-wayland.h
+++ b/src/wayland/meta-wayland.h
@@ -94,5 +94,8 @@ void meta_wayland_compositor_notify_surface_id (MetaWaylandCo
int id,
MetaWaylandSurface *surface);
+META_EXPORT_TEST
+MetaXWaylandManager * meta_wayland_compositor_get_xwayland_manager (MetaWaylandCompositor *compositor);
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]