[gtk+] wayland: destroy subsurfaces along with parents



commit f6b44773934546bda7d35073673922cfc90b3b6f
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Wed Nov 23 14:45:16 2016 +0100

    wayland: destroy subsurfaces along with parents
    
    Wayland subsurfaces can have other native window parents, but those need
    to be destroyed along with the rest of the window hierarchy otherwise
    an assert() is reached.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774915

 gdk/gdkwindow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 9ddec1b..f232f36 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1937,6 +1937,7 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
     case GDK_WINDOW_CHILD:
     case GDK_WINDOW_TEMP:
     case GDK_WINDOW_FOREIGN:
+    case GDK_WINDOW_SUBSURFACE:
       if (window->window_type == GDK_WINDOW_FOREIGN && !foreign_destroy)
        {
          /* Logically, it probably makes more sense to send


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