more guarding in cleanup pid gathering

This commit is contained in:
vaxerski 2022-09-08 20:55:25 +02:00
parent 0eb5ecafb9
commit 0d95a0174c

View file

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