mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:25:59 +01:00
Simplfy framebuffer erasing in cleanupFadingOut
This commit is contained in:
parent
72f528cb52
commit
ea717731a4
1 changed files with 2 additions and 3 deletions
|
@ -1231,8 +1231,7 @@ void CCompositor::cleanupFadingOut(const int& monid) {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue