keybinds: check for special workspace equality before switching

fixes #5814
This commit is contained in:
Vaxry 2024-04-30 16:42:31 +01:00
parent 90e1411315
commit 1f6657f037

View file

@ -1833,7 +1833,8 @@ void CKeybindManager::focusWindow(std::string regexp) {
return; 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"); Debug::log(LOG, "Fake executing workspace to move focus");
changeworkspace(PWORKSPACE->getConfigName()); changeworkspace(PWORKSPACE->getConfigName());
} }