summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-29 00:00:47 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-29 00:00:47 +0200
commit3f8845a6a741a2a6532ef4b15d731b82224fb62c (patch)
tree25e3fa03bee2807f95cc2fb585019ad5fed50686 /src/Compositor.cpp
parent894ae2d74217f4c37653022d855d00fd46c39457 (diff)
Added an exit dispatcher and no more SIGSEGV on exit
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index b554f361..ed044fc8 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -144,6 +144,9 @@ void CCompositor::cleanupExit() {
if (!m_sWLDisplay)
return;
+ m_lWorkspaces.clear();
+ m_lWindows.clear();
+
if (g_pXWaylandManager->m_sWLRXWayland) {
wlr_xwayland_destroy(g_pXWaylandManager->m_sWLRXWayland);
g_pXWaylandManager->m_sWLRXWayland = nullptr;