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

Commit 4c696cce authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "InputMonitor: Ensure we assign input to correct Surface" into rvc-dev

parents afe3e11c e57724d7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -487,7 +487,8 @@ final class InputMonitor {
                    || w.cantReceiveTouchInput()) {
                if (w.mWinAnimator.hasSurface()) {
                    mInputTransaction.setInputWindowInfo(
                            w.mWinAnimator.mSurfaceController.mSurfaceControl, mInvalidInputWindow);
                        w.mWinAnimator.mSurfaceController.getClientViewRootSurface(),
                        mInvalidInputWindow);
                }
                // Skip this window because it cannot possibly receive input.
                return;
@@ -560,7 +561,8 @@ final class InputMonitor {

            if (w.mWinAnimator.hasSurface()) {
                mInputTransaction.setInputWindowInfo(
                        w.mWinAnimator.mSurfaceController.mSurfaceControl, inputWindowHandle);
                    w.mWinAnimator.mSurfaceController.getClientViewRootSurface(),
                    inputWindowHandle);
            }
        }
    }