summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkdisplay-wayland.c
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2016-07-12 11:49:39 +0800
committerMatthias Clasen <mclasen@redhat.com>2016-08-29 13:20:44 -0400
commit127d2ac956cec1bb26df7d66f9b0859129a900e5 (patch)
treea2707d6223e2d078e496ec2790ae41aab82568f4 /gdk/wayland/gdkdisplay-wayland.c
parente1a03ead7a541a2118816b1632e957cc2bb44c8f (diff)
downloadgtk+-127d2ac956cec1bb26df7d66f9b0859129a900e5.tar.gz
wayland: Add API for creating exported window handles
Using the xdg_foreign protocol, expose a way to get handles to windows that may be shared between processes. https://bugzilla.gnome.org/show_bug.cgi?id=769788
Diffstat (limited to 'gdk/wayland/gdkdisplay-wayland.c')
-rw-r--r--gdk/wayland/gdkdisplay-wayland.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index f5b6218698..4bb247e160 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -45,6 +45,7 @@
#include "pointer-gestures-unstable-v1-client-protocol.h"
#include "tablet-unstable-v2-client-protocol.h"
#include "xdg-shell-unstable-v6-client-protocol.h"
+#include "xdg-foreign-unstable-v1-client-protocol.h"
/**
* SECTION:wayland_interaction
@@ -433,6 +434,12 @@ gdk_registry_handle_global (void *data,
wl_registry_bind(display_wayland->wl_registry, id,
&zwp_tablet_manager_v2_interface, 1);
}
+ else if (strcmp (interface, "zxdg_exporter_v1") == 0)
+ {
+ display_wayland->xdg_exporter =
+ wl_registry_bind (display_wayland->wl_registry, id,
+ &zxdg_exporter_v1_interface, 1);
+ }
else
handled = FALSE;