diff options
| -rw-r--r-- | services/core/jni/com_android_server_input_InputManagerService.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp index b19de189af5a..1f0c827083ac 100644 --- a/services/core/jni/com_android_server_input_InputManagerService.cpp +++ b/services/core/jni/com_android_server_input_InputManagerService.cpp @@ -362,6 +362,7 @@ public: void notifyDropWindow(const sp<IBinder>& token, float x, float y) override; void notifyDeviceInteraction(int32_t deviceId, nsecs_t timestamp, const std::set<gui::Uid>& uids) override; + void notifyFocusedDisplayChanged(ui::LogicalDisplayId displayId) override; /* --- PointerControllerPolicyInterface implementation --- */ @@ -1108,6 +1109,10 @@ void NativeInputManager::notifyVibratorState(int32_t deviceId, bool isOn) { checkAndClearExceptionFromCallback(env, "notifyVibratorState"); } +void NativeInputManager::notifyFocusedDisplayChanged(ui::LogicalDisplayId displayId) { + mInputManager->getChoreographer().setFocusedDisplay(displayId); +} + void NativeInputManager::displayRemoved(JNIEnv* env, ui::LogicalDisplayId displayId) { mInputManager->getDispatcher().displayRemoved(displayId); } |