summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2020-03-26 12:58:37 +0000
committer Arthur Hung <arthurhung@google.com> 2020-03-26 12:59:06 +0000
commit25e2af10b9200f2970985b54db17b6d427928e89 (patch)
treee67ac5da78f34f4812dee40be5366d7d8d27247b /services/inputflinger/InputManager.cpp
parent2d112c5f625d09bb703b8909289d11f02ee44398 (diff)
Revert "Fix input infos are inconsistent between WMS and InputFlinger (2/2)"
This reverts commit 2d112c5f625d09bb703b8909289d11f02ee44398. Reason for revert: Inject event may take too long if no animation. Change-Id: Ie101f881363cf088a73a8b106fd242c15c7788bf
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 f2a0014da4..c7c61cf1ef 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);
}
}