From c2f29be9baccd14ced62105f0fc07e34e6f4fd29 Mon Sep 17 00:00:00 2001 From: Max Verevkin <34583604+MaxVerevkin@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:28:32 +0300 Subject: [PATCH] make ext_workspace_unstable impl more atomic (#2023) --- src/managers/KeybindManager.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); }