From e97fa4e26bf83377d56d040fa27d7a0352e51a3f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:17:25 +0200 Subject: [PATCH] destroy monitor resources on exit --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 214d9188..5efbea2c 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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;