From 92bfe6f13e56a0dd0cfeac82f90d55cc95eefe23 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 10 Apr 2022 16:19:49 +0200 Subject: fixed some more crashes --- src/Compositor.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d5e98a1e..319a5eb1 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -563,18 +563,6 @@ void CCompositor::cleanupWindows() { if (!w->m_bReadyToDelete) continue; - w->hyprListener_mapWindow.removeCallback(); - w->hyprListener_unmapWindow.removeCallback(); - w->hyprListener_destroyWindow.removeCallback(); - - g_pLayoutManager->getCurrentLayout()->onWindowRemoved(w); - - if (w->m_pSurfaceTree) { - Debug::log(LOG, "Destroying Subsurface tree of %x in destroyWindow", w); - SubsurfaceTree::destroySurfaceTree(w->m_pSurfaceTree); - w->m_pSurfaceTree = nullptr; - } - g_pHyprOpenGL->m_mWindowFramebuffers[w].release(); g_pHyprOpenGL->m_mWindowFramebuffers.erase(w); m_lWindows.remove(*w); -- cgit v1.2.3