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

Commit 46b2df15 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2164183] sometimes device just wants to stay asleep

When switching rapidily orientation back and forth, surfaces end-up
acquiring the freeze-lock when the first orientation change happens,
but never release it because by the time the 2nd orientation change
comes in, the surface size is back to its original size and
doesn't appear to have resized.

we now always release the freeze-lock when we receive a buffer of the
expected size.
parent a2de8e31
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -454,11 +454,11 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)

            // recompute visible region
            recomputeVisibleRegions = true;
        }

        // we now have the correct size, unfreeze the screen
        mFreezeLock.clear();
    }
    }

    if (lcblk->getQueuedCount()) {
        // signal an event if we have more buffers waiting