fix special workspace dispatcher logic

This commit is contained in:
Vaxry 2022-09-19 16:01:42 +01:00
parent abb6db9c37
commit 696253b348

View file

@ -589,7 +589,7 @@ void CKeybindManager::changeworkspace(std::string args) {
if (!*PALLOWWORKSPACECYCLES) if (!*PALLOWWORKSPACECYCLES)
PCURRENTWORKSPACE->m_iPrevWorkspaceID = -1; PCURRENTWORKSPACE->m_iPrevWorkspaceID = -1;
} else if (PCURRENTWORKSPACE->m_iID == workspaceToChangeTo) } else if (PCURRENTWORKSPACE->m_iID == workspaceToChangeTo && !internal)
return; return;
// remove constraints // remove constraints
@ -840,9 +840,9 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
for (auto& m : g_pCompositor->m_vMonitors) for (auto& m : g_pCompositor->m_vMonitors)
m->specialWorkspaceOpen = false; m->specialWorkspaceOpen = false;
} } else {
g_pCompositor->focusWindow(PWINDOW); g_pCompositor->focusWindow(PWINDOW);
}
PWINDOW->updateToplevel(); PWINDOW->updateToplevel();
} }