summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-28 12:39:56 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-28 12:39:56 +0200
commit3cbd69e7039c7ed020bde7f7a58ed5c8da93155b (patch)
tree7fb94d1f6262c14e9f720fab32f518cb6819ff20 /src/managers/KeybindManager.cpp
parenta2e009bd9fe156a49225db907adb131c0fde10e3 (diff)
added createworkspace destroyworkspace events
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 99b758b0..14c535d8 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -336,7 +336,7 @@ void CKeybindManager::changeworkspace(std::string args) {
if (const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(OLDWORKSPACE); POLDWORKSPACE)
POLDWORKSPACE->startAnim(false, ANIMTOLEFT);
- g_pCompositor->m_lWorkspaces.emplace_back(PMONITOR->ID, workspaceToChangeTo == SPECIAL_WORKSPACE_ID);
+ g_pCompositor->m_lWorkspaces.emplace_back(PMONITOR->ID, workspaceName, workspaceToChangeTo == SPECIAL_WORKSPACE_ID);
const auto PWORKSPACE = &g_pCompositor->m_lWorkspaces.back();
// start anim on new workspace
@@ -348,7 +348,6 @@ void CKeybindManager::changeworkspace(std::string args) {
PWORKSPACE->m_iID = workspaceToChangeTo;
PWORKSPACE->m_iMonitorID = PMONITOR->ID;
- PWORKSPACE->m_szName = workspaceName;
PMONITOR->specialWorkspaceOpen = false;