aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-11 22:56:16 +0200
committervaxerski <[email protected]>2022-08-11 22:56:16 +0200
commit0e57651e2fb8742721e5fc534c3eb26f88b5c22f (patch)
tree0cf9dc7706f003682dcb62b1dd9250a3b7e723d9
parente5ab9643be8a5c4e04b2809ac2c66abf0e87d608 (diff)
downloadHyprland-0e57651e2fb8742721e5fc534c3eb26f88b5c22f.tar.gz
Hyprland-0e57651e2fb8742721e5fc534c3eb26f88b5c22f.zip
fix segfault with cyclenext nullv0.10.1beta
-rw-r--r--src/managers/KeybindManager.cpp2
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) {