aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-19 23:03:58 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-19 23:03:58 +1000
commit5c5296c912394ff6bd1ad33a2d78ae2bd142248e (patch)
tree3c7a7f760487f03929c0a742fe82d5d1b88ec550
parentac26d23711cbfe78ca392d14fa439a0e8f660884 (diff)
xwm: Remove child->parent pointer when parent destroys
-rw-r--r--xwayland/xwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 474b53d0..8c1777b7 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -313,6 +313,7 @@ static void xwayland_surface_destroy(
wl_list_for_each_safe(child, next, &xsurface->children, parent_link) {
wl_list_remove(&child->parent_link);
wl_list_init(&child->parent_link);
+ child->parent = NULL;
}
if (xsurface->surface_id) {