aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-26 17:51:00 +0200
committervaxerski <[email protected]>2022-04-26 17:51:00 +0200
commitd35019f185bbc5dc3e7cbc8faf2d72aa39643d90 (patch)
tree8f4786b58ac960186933b081b1ff126bed03028b
parentcabab409e6eb331ff435147dd12c16c7f507ce05 (diff)
downloadHyprland-d35019f185bbc5dc3e7cbc8faf2d72aa39643d90.tar.gz
Hyprland-d35019f185bbc5dc3e7cbc8faf2d72aa39643d90.zip
fix rare crash
-rw-r--r--src/Compositor.cpp7
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();