summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-11-23 14:45:16 +0100
committerOlivier Fourdan <ofourdan@redhat.com>2016-12-05 10:56:41 +0100
commitf6b44773934546bda7d35073673922cfc90b3b6f (patch)
tree5a7d16cac96e71097d017fe057622f52326bc3e9
parentac20c3eb2221d83ba075d6a2e20d1e126fc9039d (diff)
downloadgtk+-f6b44773934546bda7d35073673922cfc90b3b6f.tar.gz
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
-rw-r--r--gdk/gdkwindow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 9ddec1bf08..f232f36d23 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