summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Kelly Rossmoyer <krossmo@google.com> 2020-03-27 17:34:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-27 17:34:48 +0000
commit8f0b5bda58b843ca4d0bf7cd68f03766dc852ea0 (patch)
tree33fa5fa52c46778d78bb5b5f42c156801d267051 /services/inputflinger/InputManager.cpp
parent8e8cec4c48603621552db8dbd2c090847ff0b5e4 (diff)
parent25e2af10b9200f2970985b54db17b6d427928e89 (diff)
Merge "Revert "Fix input infos are inconsistent between WMS and InputFlinger (2/2)"" into rvc-dev
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index e68946d734..fc771a2c58 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -111,10 +111,8 @@ void InputManager::setInputWindows(const std::vector<InputWindowInfo>& infos,
handlesPerDisplay.emplace(info.displayId, std::vector<sp<InputWindowHandle>>());
handlesPerDisplay[info.displayId].push_back(new BinderWindowHandle(info));
}
- mDispatcher->setInputWindows(handlesPerDisplay);
-
- if (setInputWindowsListener) {
- setInputWindowsListener->onSetInputWindowsFinished();
+ for (auto const& i : handlesPerDisplay) {
+ mDispatcher->setInputWindows(i.second, i.first, setInputWindowsListener);
}
}