diff options
author | vaxerski <[email protected]> | 2022-08-11 22:56:16 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-11 22:56:16 +0200 |
commit | 0e57651e2fb8742721e5fc534c3eb26f88b5c22f (patch) | |
tree | 0cf9dc7706f003682dcb62b1dd9250a3b7e723d9 | |
parent | e5ab9643be8a5c4e04b2809ac2c66abf0e87d608 (diff) | |
download | Hyprland-0e57651e2fb8742721e5fc534c3eb26f88b5c22f.tar.gz Hyprland-0e57651e2fb8742721e5fc534c3eb26f88b5c22f.zip |
fix segfault with cyclenext nullv0.10.1beta
-rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index feb217e3..425736ff 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) { |