mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:45:58 +01:00
keybinds: check for special workspace equality before switching
fixes #5814
This commit is contained in:
parent
90e1411315
commit
1f6657f037
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue