aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-19 15:27:20 +0200
committerGitHub <noreply@github.com>2018-10-19 15:27:20 +0200
commitd88fffa5c492a5f73738d15a106e4e21a1b9aa4b (patch)
tree3c7a7f760487f03929c0a742fe82d5d1b88ec550 /xwayland
parentac26d23711cbfe78ca392d14fa439a0e8f660884 (diff)
parent5c5296c912394ff6bd1ad33a2d78ae2bd142248e (diff)
Merge pull request #1321 from RyanDwyer/xwm-remove-dangling-parent
xwm: Remove child->parent pointer when parent destroys
Diffstat (limited to 'xwayland')
-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) {