layer-shell: properly map and unmap surface and propagate unmap events

This commit is contained in:
vaxerski
2024-07-27 18:08:22 +02:00
parent 729b47d46d
commit 0243271544
3 changed files with 7 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C
PROTO::layerShell->destroyResource(this);
});
listeners.unmapSurface = surf_->events.unmap.registerListener([this](std::any d) { events.unmap.emit(); });
listeners.commitSurface = surf_->events.commit.registerListener([this](std::any d) {
current = pending;
pending.committed = 0;