[gtk+] wayland: Destroy the xdg_imported after the wl_surface



commit 6412d25602956f6acfd64eceac6f3c62f9f7b76f
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Dec 1 16:03:34 2017 +0800

    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791062

 gdk/wayland/gdkwindow-wayland.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 214bda4..ebfe9ab 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -2448,8 +2448,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)
@@ -2531,6 +2529,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]