From 0d95a0174c012b4c4fb5ed74f75d3b82e4bef5a7 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:55:25 +0200 Subject: [PATCH] more guarding in cleanup pid gathering --- src/Compositor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 8eb75002..fb02bf40 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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()); }