summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland.c
diff options
context:
space:
mode:
authorJason Francis <cycl0ps@tuta.io>2020-02-06 02:00:56 -0500
committerMarge Bot <marge-bot@gnome.org>2022-12-17 20:38:23 +0000
commitaa0b1fbc8890a0237737d354d1e1292f620a0a12 (patch)
tree375d0ff0a731a320118d90944f2ac12283de09ce /src/wayland/meta-wayland.c
parent4d89149052a6900a4ecee7187225544801821b42 (diff)
downloadmutter-aa0b1fbc8890a0237737d354d1e1292f620a0a12.tar.gz
wayland/xdg-foreign: Add support for xdg-foreign-v2
This replaces the v1 implementation, which is now renamed to legacy-xdg-foreign. Both implementations use the same data structures internally, so that protocol version mismatches between the importer client and exporter client don't fail. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2770>
Diffstat (limited to 'src/wayland/meta-wayland.c')
-rw-r--r--src/wayland/meta-wayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 358a0d68c..44f11df50 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -39,6 +39,7 @@
#include "wayland/meta-wayland-egl-stream.h"
#include "wayland/meta-wayland-inhibit-shortcuts-dialog.h"
#include "wayland/meta-wayland-inhibit-shortcuts.h"
+#include "wayland/meta-wayland-legacy-xdg-foreign.h"
#include "wayland/meta-wayland-outputs.h"
#include "wayland/meta-wayland-presentation-time-private.h"
#include "wayland/meta-wayland-private.h"
@@ -623,6 +624,7 @@ meta_wayland_compositor_new (MetaContext *context)
meta_wayland_relative_pointer_init (compositor);
meta_wayland_pointer_constraints_init (compositor);
meta_wayland_xdg_foreign_init (compositor);
+ meta_wayland_legacy_xdg_foreign_init (compositor);
init_dma_buf_support (compositor);
meta_wayland_init_single_pixel_buffer_manager (compositor);
meta_wayland_keyboard_shortcuts_inhibit_init (compositor);