core/compositor: Correctly track SHM buffer damage (#9678)
This commit is contained in:
parent
4600043a49
commit
6384f4acf4
15 changed files with 103 additions and 82 deletions
|
|
@ -62,12 +62,12 @@ void CXWaylandSurface::ensureListeners() {
|
|||
});
|
||||
|
||||
listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) {
|
||||
if (surface->pending.texture && !mapped) {
|
||||
if (surface->current.texture && !mapped) {
|
||||
map();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!surface->pending.texture && mapped) {
|
||||
if (!surface->current.texture && mapped) {
|
||||
unmap();
|
||||
return;
|
||||
}
|
||||
|
|
@ -131,7 +131,7 @@ void CXWaylandSurface::considerMap() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (surface->pending.texture) {
|
||||
if (surface->current.texture) {
|
||||
Debug::log(LOG, "XWayland surface: considerMap, sure, we have a buffer");
|
||||
map();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue