more checks in pid gathering

This commit is contained in:
vaxerski 2022-10-06 17:58:38 +01:00
parent a29af89545
commit ee3b770cfd
1 changed files with 1 additions and 3 deletions

View File

@ -240,10 +240,8 @@ void CCompositor::cleanup() {
// accumulate all PIDs for killing, also request closing. // accumulate all PIDs for killing, also request closing.
for (auto& w : m_vWindows) { for (auto& w : m_vWindows) {
if (w->m_bIsMapped || !w->m_bIsX11) if (w->m_bIsMapped && !w->m_bHidden)
m_dProcessPIDsOnShutdown.push_back(w->getPID()); m_dProcessPIDsOnShutdown.push_back(w->getPID());
closeWindow(w.get());
} }
// end threads // end threads