dispatchers: fix movetoworkspace with bound ws-es

This commit is contained in:
vaxerski 2023-04-17 16:09:46 +01:00
parent 25f14294a8
commit b6a7be7663

View file

@ -884,8 +884,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
g_pCompositor->setActiveMonitor(PMONITOR); g_pCompositor->setActiveMonitor(PMONITOR);
PMONITOR->changeWorkspace(pWorkspace); PMONITOR->changeWorkspace(pWorkspace);
} else { } else {
const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID);
pWorkspace = g_pCompositor->createNewWorkspace(WORKSPACEID, PWINDOW->m_iMonitorID, workspaceName); pWorkspace = g_pCompositor->createNewWorkspace(WORKSPACEID, PWINDOW->m_iMonitorID, workspaceName);
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID);
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace); g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace);
PMONITOR->changeWorkspace(pWorkspace); PMONITOR->changeWorkspace(pWorkspace);
} }