From 0e57651e2fb8742721e5fc534c3eb26f88b5c22f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 11 Aug 2022 22:56:16 +0200 Subject: [PATCH] fix segfault with cyclenext null --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index feb217e34..425736ff3 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1257,7 +1257,7 @@ void CKeybindManager::circleNext(std::string arg) { return; auto switchToWindow = [&](CWindow* PWINDOWTOCHANGETO) { - if (PWINDOWTOCHANGETO == g_pCompositor->m_pLastWindow) + if (PWINDOWTOCHANGETO == g_pCompositor->m_pLastWindow || !PWINDOWTOCHANGETO) return; if (g_pCompositor->m_pLastWindow->m_iWorkspaceID == PWINDOWTOCHANGETO->m_iWorkspaceID && g_pCompositor->m_pLastWindow->m_bIsFullscreen) {