Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c61de17f authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fixed [2260070] display stopped updating

always check that the visible region isn't empty after all visible regions are recomputed
clear he freeze-lock if it is.
parent def563c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -515,6 +515,11 @@ void Layer::unlockPageFlip(
        dirtyRegion.andSelf(visibleRegionScreen);
        outDirtyRegion.orSelf(dirtyRegion);
    }
    if (visibleRegionScreen.isEmpty()) {
        // an invisible layer should not hold a freeze-lock
        // (because it may never be updated and thereore never release it)
        mFreezeLock.clear();
    }
}

void Layer::finishPageFlip()