wayland/subsurface: Handle node unlinking on parent destroyed

It concerns subsurface state and the subsurface already listenes
for the parent to get destroyed.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1958>
This commit is contained in:
Robert Mader
2021-08-06 13:10:52 +02:00
committed by Marge Bot
parent 2a2f9300d0
commit f41696b0fc
2 changed files with 2 additions and 15 deletions

View File

@ -502,6 +502,7 @@ surface_handle_parent_surface_destroyed (struct wl_listener *listener,
surface,
sub.parent_destroy_listener);
g_node_unlink (surface->subsurface_branch_node);
surface->sub.parent = NULL;
}