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

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

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

parents 70c0aa52 b85faac6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -999,6 +999,7 @@ void NativeInputManager::displayRemoved(JNIEnv* env, int32_t displayId) {
    // Set an empty list to remove all handles from the specific display.
    std::vector<sp<InputWindowHandle>> windowHandles;
    mInputManager->getDispatcher()->setInputWindows({{displayId, windowHandles}});
    mInputManager->getDispatcher()->setFocusedApplication(displayId, nullptr);
}

void NativeInputManager::setFocusedApplication(JNIEnv* env, int32_t displayId,