compositor: remove windows from fading out on destroy

ref #5321
This commit is contained in:
Vaxry 2024-03-29 19:06:08 +00:00
parent 3d1bf1405e
commit 54376d7b5f

View file

@ -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<CWindow>& el) { return el.get() == pWindow; });
std::erase_if(m_vWindowsFadingOut, [&](CWindow* el) { return el == pWindow; });
}
bool CCompositor::windowExists(CWindow* pWindow) {