Skip to content

Commit

Permalink
... i should test before push ;-;
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalco committed Jul 19, 2024
1 parent 4906b40 commit 1c543b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/protocols/core/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ void CWLSurfaceResource::commitPendingState() {
previousBuffer->hlEvents.backendRelease = previousBuffer->events.backendRelease.registerListener([this, previousBuffer](std::any data) {
previousBuffer->sendReleaseWithSurface(self.lock());
previousBuffer->hlEvents.backendRelease.reset();
bufferReleased = true;
});
} else
previousBuffer->sendReleaseWithSurface(self.lock());
Expand Down
3 changes: 2 additions & 1 deletion src/protocols/types/Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ void IHLBuffer::sendRelease() {
}

void IHLBuffer::sendReleaseWithSurface(SP<CWLSurfaceResource> surf) {
resource->sendReleaseWithSurface(surf);
if (resource && resource->good())
resource->sendReleaseWithSurface(surf);
}

0 comments on commit 1c543b2

Please sign in to comment.