mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-01 15:48:30 +00:00
fixed some more crashes
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user