diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2016-07-12 11:49:39 +0800 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-08-29 13:20:44 -0400 |
commit | 127d2ac956cec1bb26df7d66f9b0859129a900e5 (patch) | |
tree | a2707d6223e2d078e496ec2790ae41aab82568f4 /gdk/wayland/gdkdisplay-wayland.c | |
parent | e1a03ead7a541a2118816b1632e957cc2bb44c8f (diff) | |
download | gtk+-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.c | 7 |
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; |