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) {