From ff9ddccf1c613d3cf2890fe5bf29ed9aa1601359 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 8 Aug 2023 20:26:56 +0200 Subject: fix crash in opaque --- src/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.cpp b/src/Window.cpp index f48d27f1..d66e6ebe 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -766,7 +766,7 @@ bool CWindow::opaque() { const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID); - if (PWORKSPACE->m_fAlpha.fl() != 1.f) + if (PWORKSPACE && PWORKSPACE->m_fAlpha.fl() != 1.f) return false; if (m_bIsX11) -- cgit v1.2.3