xwm: use correct list link when iterating over unpaired_surfaces

This commit is contained in:
Tudor Brindus 2021-05-19 20:33:45 -04:00 committed by Simon Ser
parent abf527b075
commit 699d724000

View file

@ -1633,7 +1633,7 @@ void xwm_destroy(struct wlr_xwm *xwm) {
wl_list_for_each_safe(xsurface, tmp, &xwm->surfaces, link) {
xwayland_surface_destroy(xsurface);
}
wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, link) {
wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, unpaired_link) {
xwayland_surface_destroy(xsurface);
}
wl_list_remove(&xwm->compositor_new_surface.link);