Simplfy framebuffer erasing in cleanupFadingOut
This commit is contained in:
parent
72f528cb52
commit
ea717731a4
1 changed files with 2 additions and 3 deletions
|
|
@ -1230,9 +1230,8 @@ void CCompositor::cleanupFadingOut(const int& monid) {
|
||||||
if (!valid || !w->m_bFadingOut || w->m_fAlpha.fl() == 0.f) {
|
if (!valid || !w->m_bFadingOut || w->m_fAlpha.fl() == 0.f) {
|
||||||
if (valid && !w->m_bReadyToDelete)
|
if (valid && !w->m_bReadyToDelete)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
g_pHyprOpenGL->m_mWindowFramebuffers[w].release();
|
std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first == w; });
|
||||||
g_pHyprOpenGL->m_mWindowFramebuffers.erase(w);
|
|
||||||
w->m_bFadingOut = false;
|
w->m_bFadingOut = false;
|
||||||
removeWindowFromVectorSafe(w);
|
removeWindowFromVectorSafe(w);
|
||||||
std::erase(m_vWindowsFadingOut, w);
|
std::erase(m_vWindowsFadingOut, w);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue