diff options
| author | 2020-03-26 01:15:40 +0000 | |
|---|---|---|
| committer | 2020-03-26 01:15:40 +0000 | |
| commit | f4f7283fc673534ab3a9807f936edc7888fe4004 (patch) | |
| tree | 44395c74c5b197ef6daa07640bf6b456ff0543c5 /services/inputflinger/InputManager.cpp | |
| parent | d6e0ff545abd08fec496f5f46f90355adce9574d (diff) | |
| parent | 2d112c5f625d09bb703b8909289d11f02ee44398 (diff) | |
Merge "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.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index fc771a2c58..e68946d734 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -111,8 +111,10 @@ void InputManager::setInputWindows(const std::vector<InputWindowInfo>& infos, handlesPerDisplay.emplace(info.displayId, std::vector<sp<InputWindowHandle>>()); handlesPerDisplay[info.displayId].push_back(new BinderWindowHandle(info)); } - for (auto const& i : handlesPerDisplay) { - mDispatcher->setInputWindows(i.second, i.first, setInputWindowsListener); + mDispatcher->setInputWindows(handlesPerDisplay); + + if (setInputWindowsListener) { + setInputWindowsListener->onSetInputWindowsFinished(); } } |