surface: emit unmap before unmapping and releasing the buffers

This commit is contained in:
vaxerski
2024-07-28 23:56:35 +02:00
parent 7df9b01d48
commit a9d87bd666
5 changed files with 5 additions and 6 deletions

View File

@@ -73,8 +73,8 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C
if (!attachedBuffer && mapped) {
mapped = false;
surface->unmap();
events.unmap.emit();
surface->unmap();
configured = false;
return;
}