diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-03-01 10:06:04 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-03-01 10:06:15 +0000 |
| commit | ea717731a41be907e9bfaa2c41a3f145452c7767 (patch) | |
| tree | c51ef15f6927843bde609dcbdcc7d4312db0b886 /src/Compositor.cpp | |
| parent | 72f528cb52d13d88471963a06e08dd7cfa2efffa (diff) | |
Simplfy framebuffer erasing in cleanupFadingOut
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 26565b18..8aec26f8 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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_bReadyToDelete) continue; - - g_pHyprOpenGL->m_mWindowFramebuffers[w].release(); - g_pHyprOpenGL->m_mWindowFramebuffers.erase(w); + + std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first == w; }); w->m_bFadingOut = false; removeWindowFromVectorSafe(w); std::erase(m_vWindowsFadingOut, w); |
