[gtk+/gtk-3-22] wayland: destroy subsurfaces along with parents



commit 7f39c7cbf758139e7eee51c2176a0afa7ede8216
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 5267b70..1748f3c 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2030,6 +2030,7 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
     case GDK_WINDOW_TEMP:
     case GDK_WINDOW_FOREIGN:
     case GDK_WINDOW_OFFSCREEN:
+    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]