layers: arrange layers on destroy

...rather than unmap because that is the approach of sway and it also
avoids wshowkeys crashing.

Fixes: #1153
This commit is contained in:
Johan Malm 2023-10-10 21:51:58 +01:00 committed by Johan Malm
parent ca94abbef1
commit 7bf08af210
3 changed files with 23 additions and 4 deletions

View file

@ -11,7 +11,7 @@ descriptor_destroy(struct node_descriptor *node_descriptor)
return;
}
wl_list_remove(&node_descriptor->destroy.link);
free(node_descriptor);
zfree(node_descriptor);
}
static void