Skip to content

Commit

Permalink
compositor: remove windows from fadingOut properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 6, 2024
1 parent ec73f03 commit 6e4c15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,10 +692,10 @@ CMonitor* CCompositor::getMonitorFromVector(const Vector2D& point) {
}

void CCompositor::removeWindowFromVectorSafe(CWindow* pWindow) {
if (windowExists(pWindow) && !pWindow->m_bFadingOut)
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; });
std::erase_if(m_vWindowsFadingOut, [&](CWindow* el) { return el == pWindow; });
}
}

bool CCompositor::windowExists(CWindow* pWindow) {
Expand Down

0 comments on commit 6e4c15e

Please sign in to comment.