From 54376d7b5f88bffd96ce9ded26637d83d7aa95b1 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 29 Mar 2024 19:06:08 +0000 Subject: [PATCH] compositor: remove windows from fading out on destroy ref #5321 --- src/Compositor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 2e49237c..7e81797f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -693,6 +693,8 @@ CMonitor* CCompositor::getMonitorFromVector(const Vector2D& point) { void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) { if (windowExists(pWindow) && !pWindow->m_bFadingOut) std::erase_if(m_vWindows, [&](std::unique_ptr& el) { return el.get() == pWindow; }); + + std::erase_if(m_vWindowsFadingOut, [&](CWindow* el) { return el == pWindow; }); } bool CCompositor::windowExists(CWindow* pWindow) {