diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-26 17:51:00 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-26 17:51:00 +0200 |
| commit | d35019f185bbc5dc3e7cbc8faf2d72aa39643d90 (patch) | |
| tree | 8f4786b58ac960186933b081b1ff126bed03028b /src/Compositor.cpp | |
| parent | cabab409e6eb331ff435147dd12c16c7f507ce05 (diff) | |
fix rare crash
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 56e8e8ff..a5eb998e 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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(); |
