keybinds: fix move to named

This commit is contained in:
vaxerski 2023-04-26 16:58:58 +01:00
parent 28ca434fb5
commit 4a1fb3e903

View file

@ -1143,7 +1143,9 @@ void CKeybindManager::moveActiveTo(std::string args) {
if (!PMONITORTOCHANGETO)
return;
moveActiveToWorkspace(std::to_string(PMONITORTOCHANGETO->activeWorkspace));
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITORTOCHANGETO->activeWorkspace);
moveActiveToWorkspace(PMONITORTOCHANGETO->activeWorkspace < 0 ? "name:" + PWORKSPACE->m_szName : std::to_string(PMONITORTOCHANGETO->activeWorkspace));
}
void CKeybindManager::toggleGroup(std::string args) {