destroy monitor resources on exit

This commit is contained in:
vaxerski 2022-08-22 14:17:25 +02:00
parent 52318692f0
commit e97fa4e26b

View file

@ -225,6 +225,9 @@ void CCompositor::cleanup() {
m_vWorkspaces.clear();
m_vWindows.clear();
for (auto& m : m_vMonitors)
g_pHyprOpenGL->destroyMonitorResources(m.get());
if (g_pXWaylandManager->m_sWLRXWayland) {
wlr_xwayland_destroy(g_pXWaylandManager->m_sWLRXWayland);
g_pXWaylandManager->m_sWLRXWayland = nullptr;