core: emit unmap event after unmap in surface destroy

This commit is contained in:
vaxerski 2024-07-28 23:47:17 +02:00
parent 256db08aed
commit 7df9b01d48

View File

@ -151,8 +151,10 @@ CWLSurfaceResource::~CWLSurfaceResource() {
}
void CWLSurfaceResource::destroy() {
if (mapped)
if (mapped) {
unmap();
events.unmap.emit();
}
events.destroy.emit();
PROTO::compositor->destroyResource(this);
}