Merge "InputMonitor: Ensure we assign input to correct Surface" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4c696cce14
@@ -487,7 +487,8 @@ final class InputMonitor {
|
|||||||
|| w.cantReceiveTouchInput()) {
|
|| w.cantReceiveTouchInput()) {
|
||||||
if (w.mWinAnimator.hasSurface()) {
|
if (w.mWinAnimator.hasSurface()) {
|
||||||
mInputTransaction.setInputWindowInfo(
|
mInputTransaction.setInputWindowInfo(
|
||||||
w.mWinAnimator.mSurfaceController.mSurfaceControl, mInvalidInputWindow);
|
w.mWinAnimator.mSurfaceController.getClientViewRootSurface(),
|
||||||
|
mInvalidInputWindow);
|
||||||
}
|
}
|
||||||
// Skip this window because it cannot possibly receive input.
|
// Skip this window because it cannot possibly receive input.
|
||||||
return;
|
return;
|
||||||
@@ -560,7 +561,8 @@ final class InputMonitor {
|
|||||||
|
|
||||||
if (w.mWinAnimator.hasSurface()) {
|
if (w.mWinAnimator.hasSurface()) {
|
||||||
mInputTransaction.setInputWindowInfo(
|
mInputTransaction.setInputWindowInfo(
|
||||||
w.mWinAnimator.mSurfaceController.mSurfaceControl, inputWindowHandle);
|
w.mWinAnimator.mSurfaceController.getClientViewRootSurface(),
|
||||||
|
inputWindowHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user