mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 22:29:50 +01:00
fix rare crash
This commit is contained in:
parent
cabab409e6
commit
d35019f185
1 changed files with 5 additions and 2 deletions
|
@ -622,8 +622,11 @@ void CCompositor::moveWindowToTop(CWindow* pWindow) {
|
|||
|
||||
void CCompositor::cleanupWindows() {
|
||||
for (auto& w : m_lWindowsFadingOut) {
|
||||
if (!w->m_bFadingOut || w->m_fAlpha.fl() == 0.f) {
|
||||
if (!w->m_bReadyToDelete)
|
||||
|
||||
bool valid = windowValidMapped(w);
|
||||
|
||||
if (!valid || !w->m_bFadingOut || w->m_fAlpha.fl() == 0.f) {
|
||||
if (valid && !w->m_bReadyToDelete)
|
||||
continue;
|
||||
|
||||
g_pHyprOpenGL->m_mWindowFramebuffers[w].release();
|
||||
|
|
Loading…
Reference in a new issue