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

This commit is contained in:
TreeHugger Robot
2020-04-20 23:47:24 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}
}