Revert "GdkWaylandWindow: Unexport when finalizing"

This reverts commit 251e216052.
This commit is contained in:
Matthias Clasen 2017-05-08 15:59:23 -04:00
parent 251e216052
commit c4a5f6a601

View File

@ -237,8 +237,6 @@ static void calculate_moved_to_rect_result (GdkWindow *window,
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)
@ -958,9 +956,6 @@ gdk_window_impl_wayland_finalize (GObject *object)
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);
@ -3994,12 +3989,6 @@ static const struct zxdg_exported_v1_listener xdg_exported_listener = {
* 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