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/gdkwaylandwindow.h | |
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/gdkwaylandwindow.h')
-rw-r--r-- | gdk/wayland/gdkwaylandwindow.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdk/wayland/gdkwaylandwindow.h b/gdk/wayland/gdkwaylandwindow.h index e46ce18d79..6c006e80a7 100644 --- a/gdk/wayland/gdkwaylandwindow.h +++ b/gdk/wayland/gdkwaylandwindow.h @@ -60,6 +60,18 @@ void gdk_wayland_window_set_dbus_properties_libgtk_only (Gdk const char *application_object_path, const char *unique_bus_name); +typedef void (*GdkWaylandWindowExported) (GdkWindow *window, + const char *handle, + gpointer user_data); + +GDK_AVAILABLE_IN_3_22 +gboolean gdk_wayland_window_export_handle (GdkWindow *window, + GdkWaylandWindowExported callback, + gpointer user_data, + GDestroyNotify destroy_func); + +GDK_AVAILABLE_IN_3_22 +void gdk_wayland_window_unexport_handle (GdkWindow *window); G_END_DECLS |