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

Commit ceb72e87 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: fix a bug in isFrameActive

We should look at the value of layer_state_t::frameRateCompatibility only if layer_state_t::eFrameRateChanged changed.

Test: presubmit
Bug: 264952266
Change-Id: Ice3537cde6a91bacbe253d18faeef44433bcd982
parent ae0b8d1d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -91,7 +91,9 @@ struct TransactionState {
        if (!displays.empty()) return true;

        for (const auto& state : states) {
            if (state.state.frameRateCompatibility != ANATIVEWINDOW_FRAME_RATE_NO_VOTE) {
            const bool frameRateChanged = state.state.what & layer_state_t::eFrameRateChanged;
            if (!frameRateChanged ||
                state.state.frameRateCompatibility != ANATIVEWINDOW_FRAME_RATE_NO_VOTE) {
                return true;
            }
        }