Merge "Remove the per display window handles when the display is removed." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-20 16:49:05 +00:00
committed by Android (Google) Code Review

View File

@@ -999,6 +999,7 @@ void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
// Set an empty list to remove all handles from the specific display. // Set an empty list to remove all handles from the specific display.
std::vector<sp<InputWindowHandle>> windowHandles; std::vector<sp<InputWindowHandle>> windowHandles;
mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}}); mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}});
mInputManager->getDispatcher()->setFocusedApplication(displayId, nullptr);
} }
void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId, void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,