fix segfault with cyclenext null

This commit is contained in:
Vaxry 2022-08-11 22:56:16 +02:00
parent e5ab9643be
commit 0e57651e2f

View file

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