summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-17 16:09:46 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-17 16:09:46 +0100
commitb6a7be7663964f1f3939e18216f9246367004ea2 (patch)
treeb62fddcbddeb75f8607728adcc81fe0574c03da7 /src/managers/KeybindManager.cpp
parent25f14294a84df1a2a840a92fd89ff4e1fd72f01e (diff)
dispatchers: fix movetoworkspace with bound ws-es
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}