aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVersus Void <versusvoid@gmail.com>2017-10-11 16:01:36 +0000
committerVersus Void <versusvoid@gmail.com>2017-10-11 16:02:16 +0000
commit508a21f93e7eeaafb9328d0e43d0e1e0f02ca5a1 (patch)
tree9d8065a954cf30909ee76bb3c95a8b41a313a81d
parentf7bcb2750b4756ed2b5231a8a2831f26ab6d93ef (diff)
Destroy surfaces on client destruction
-rw-r--r--types/wlr_xdg_shell_v6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_xdg_shell_v6.c b/types/wlr_xdg_shell_v6.c
index a16d3319..3f5f22a0 100644
--- a/types/wlr_xdg_shell_v6.c
+++ b/types/wlr_xdg_shell_v6.c
@@ -1147,8 +1147,7 @@ static void wlr_xdg_client_v6_destroy(struct wl_resource *resource) {
struct wlr_xdg_surface_v6 *surface, *tmp = NULL;
wl_list_for_each_safe(surface, tmp, &client->surfaces, link) {
- wl_list_remove(&surface->link);
- wl_list_init(&surface->link);
+ xdg_surface_destroy(surface);
}
if (client->ping_timer != NULL) {