layer-shell: properly map and unmap surface and propagate unmap events
This commit is contained in:
parent
729b47d46d
commit
0243271544
3 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue