The application might not have exported, and it'll be too late for it
at this point anyway, so lets be helpful and not leak it.
https://bugzilla.gnome.org/show_bug.cgi?id=782109
gboolean *flipped_x,
gboolean *flipped_y);
+static gboolean gdk_wayland_window_is_exported (GdkWindow *window);
+
GType _gdk_window_impl_wayland_get_type (void);
G_DEFINE_TYPE (GdkWindowImplWayland, _gdk_window_impl_wayland, GDK_TYPE_WINDOW_IMPL)
impl = GDK_WINDOW_IMPL_WAYLAND (object);
+ if (gdk_wayland_window_is_exported (window))
+ gdk_wayland_window_unexport_handle (window);
+
g_free (impl->title);
g_free (impl->application.application_id);
* Since: 3.22
*/
+static gboolean
+gdk_wayland_window_is_exported (GdkWindow *window)
+{
+ return !!impl->display_server.xdg_exported;
+}
+
/**
* gdk_wayland_window_export_handle:
* @window: the #GdkWindow to obtain a handle for