Commit 25dc32c1 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Matthias Clasen

wayland: Destroy the xdg_imported after the wl_surface

This way the window manager can handle destruction while having the
transient-for relationship still valid.
parent dee5142c
......@@ -2516,8 +2516,6 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (gdk_window_get_display (window));
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
unset_transient_for_exported (window);
unmap_popups_for_window (window);
if (impl->display_server.wl_surface)
......@@ -2599,6 +2597,8 @@ gdk_wayland_window_hide_surface (GdkWindow *window)
g_list_remove (display_wayland->orphan_dialogs, window);
unset_transient_for_exported (window);
_gdk_wayland_window_clear_saved_size (window);
impl->pending_commit = FALSE;
impl->mapped = FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment