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) {