From 1f6657f037c27b3514d928aa60c3b8c5c05ab8d9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 30 Apr 2024 16:42:31 +0100 Subject: [PATCH] keybinds: check for special workspace equality before switching fixes #5814 --- src/managers/KeybindManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 556a7950..ef74bf5c 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1833,7 +1833,8 @@ void CKeybindManager::focusWindow(std::string regexp) { return; } - if (g_pCompositor->m_pLastMonitor->activeWorkspace != PWINDOW->m_pWorkspace) { + if (g_pCompositor->m_pLastMonitor && g_pCompositor->m_pLastMonitor->activeWorkspace != PWINDOW->m_pWorkspace && + g_pCompositor->m_pLastMonitor->activeSpecialWorkspace != PWINDOW->m_pWorkspace) { Debug::log(LOG, "Fake executing workspace to move focus"); changeworkspace(PWORKSPACE->getConfigName()); }