summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index caad8d82..a039f43a 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -960,6 +960,9 @@ void CKeybindManager::changeworkspace(std::string args) {
if (ANOTHERMONITOR)
g_pCompositor->warpCursorTo(PMONITOR->vecPosition + PMONITOR->vecSize / 2.f);
+ // Destroy old workspace if it is empty
+ g_pCompositor->sanityCheckWorkspaces();
+
Debug::log(LOG, "Changed to workspace %i", workspaceToChangeTo);
}