mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
Simplfy framebuffer erasing in cleanupFadingOut
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user