fix the ChangeWindowTop func:the window which shall be switch to the top, should be pushed back to the window list.

This commit is contained in:
李政 2021-06-02 19:06:06 +08:00 committed by Gitee
parent 915a42948f
commit cb3de94f5e

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);