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
parent a1324c8cdc
commit 2888dbf597
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