diff options
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 4d3fd65b..eda5b5ed 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1433,11 +1433,15 @@ void CCompositor::cleanupFadingOut(const int& monid) { bool valid = windowExists(w); if (!valid || !w->m_bFadingOut || w->m_fAlpha.value() == 0.f) { - if (valid && !w->m_bReadyToDelete) - continue; + if (valid) { + w->m_bFadingOut = false; + + if (!w->m_bReadyToDelete) + continue; + + removeWindowFromVectorSafe(w); + } - w->m_bFadingOut = false; - removeWindowFromVectorSafe(w); std::erase(m_vWindowsFadingOut, w); Debug::log(LOG, "Cleanup: destroyed a window"); |
