fix special workspace dispatcher logic

This commit is contained in:
Vaxry 2022-09-19 16:01:42 +01:00
parent abb6db9c37
commit 696253b348
1 changed files with 3 additions and 3 deletions

View File

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