summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-01 22:57:23 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-01 22:57:23 +0200
commit563fe83db269bb19e796cf6b21d3e1bcbf1b41f1 (patch)
tree74d2daeb8682d997ebd201b99676d7d1bcb22e53 /src/managers/KeybindManager.cpp
parentf242f9447b02e304e214ef36443bd795719c3330 (diff)
keybinds: set special monitor id before recalc
set special workspace's monitor ID before we call recalculateMonitor in toggleSpecialWorkspace. Fixes #1151
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 7ce52887..bbf1ca27 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1538,9 +1538,9 @@ void CKeybindManager::toggleSpecialWorkspace(std::string args) {
POLDMON->specialWorkspaceID = 0;
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID);
- PMONITOR->specialWorkspaceID = workspaceID;
- g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID);
+ PMONITOR->specialWorkspaceID = workspaceID;
PSPECIALWORKSPACE->m_iMonitorID = PMONITOR->ID;
+ g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID);
if (const auto PWINDOW = PSPECIALWORKSPACE->getLastFocusedWindow(); PWINDOW)
g_pCompositor->focusWindow(PWINDOW);