!1 fix switchwindow

Merge pull request !1 from 李政/master
This commit is contained in:
openharmony_ci 2021-06-02 19:38:23 +08:00 committed by Gitee
commit cb8fd8b1af

View File

@ -178,12 +178,12 @@ void LayerController::ChangeWindowTop(uint32_t id)
}
std::list<uint32_t> sameTypeWinList;
sameTypeWinList.push_back(id);
for (auto it = m_windowList.begin(); it != m_windowList.end(); it++) {
if (it->windowType == topwininfo->windowType && it->windowId != id) {
sameTypeWinList.push_back(it->windowId);
}
}
sameTypeWinList.push_back(id);
const int renderSize = sameTypeWinList.size();
auto renderOrder = std::make_unique<t_ilm_surface[]>(renderSize);