summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-08 20:55:25 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-08 20:55:25 +0200
commit0d95a0174c012b4c4fb5ed74f75d3b82e4bef5a7 (patch)
treebc82b889813dffdd9dd486a85782bacae7551ed0 /src/Compositor.cpp
parent0eb5ecafb9cb8dcd4242abd03fe69f51b7930505 (diff)
more guarding in cleanup pid gathering
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 2 insertions, 1 deletions
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());
}