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,6 +237,7 @@ 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)
m_dProcessPIDsOnShutdown.push_back(w->getPID()); m_dProcessPIDsOnShutdown.push_back(w->getPID());
closeWindow(w.get()); closeWindow(w.get());