aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2021-05-19 20:33:45 -0400
committerSimon Ser <contact@emersion.fr>2021-05-31 10:41:29 +0200
commit699d7240001c4d991a265c23d9c020a36df5f70d (patch)
tree64e3c480a6c29107a5035dee5eadbf2593ddc7c6 /xwayland
parentabf527b0754cc920e5324c593b109ff4c4607471 (diff)
xwm: use correct list link when iterating over `unpaired_surfaces`
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 7e463866..fb5879e3 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -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);