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

Commit 13b7a213 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove the per display window handles when the display is removed."...

Merge "Remove the per display window handles when the display is removed." into sc-dev am: 11b48770 am: 62cf33f6 am: 68f9e330

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14633071

Change-Id: I9836120d0af16964cf02a4e048e70a187fc293c3
parents 5878a9c5 68f9e330
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,