From b6a7be7663964f1f3939e18216f9246367004ea2 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:09:46 +0100 Subject: [PATCH] dispatchers: fix movetoworkspace with bound ws-es --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 34d6ddfe..d86bec4a 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -884,8 +884,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) { g_pCompositor->setActiveMonitor(PMONITOR); PMONITOR->changeWorkspace(pWorkspace); } else { - const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); pWorkspace = g_pCompositor->createNewWorkspace(WORKSPACEID, PWINDOW->m_iMonitorID, workspaceName); + const auto PMONITOR = g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID); g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace); PMONITOR->changeWorkspace(pWorkspace); }