Destroy surfaces on client destruction

This commit is contained in:
Versus Void 2017-10-11 16:01:36 +00:00
parent f7bcb2750b
commit 508a21f93e

View file

@ -1147,8 +1147,7 @@ static void wlr_xdg_client_v6_destroy(struct wl_resource *resource) {
struct wlr_xdg_surface_v6 *surface, *tmp = NULL; struct wlr_xdg_surface_v6 *surface, *tmp = NULL;
wl_list_for_each_safe(surface, tmp, &client->surfaces, link) { wl_list_for_each_safe(surface, tmp, &client->surfaces, link) {
wl_list_remove(&surface->link); xdg_surface_destroy(surface);
wl_list_init(&surface->link);
} }
if (client->ping_timer != NULL) { if (client->ping_timer != NULL) {