core/surface/buffer: Buffer lock/release fixes (#7110)
This commit is contained in:
parent
5489682799
commit
37e1411e8d
27 changed files with 304 additions and 129 deletions
|
|
@ -80,13 +80,13 @@ CWLSubsurfaceResource::CWLSubsurfaceResource(SP<CWlSubsurface> resource_, SP<CWL
|
|||
});
|
||||
|
||||
listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) {
|
||||
if (surface->current.buffer && !surface->mapped) {
|
||||
if (surface->current.texture && !surface->mapped) {
|
||||
surface->map();
|
||||
surface->events.map.emit();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!surface->current.buffer && surface->mapped) {
|
||||
if (!surface->current.texture && surface->mapped) {
|
||||
surface->events.unmap.emit();
|
||||
surface->unmap();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue