make ext_workspace_unstable impl more atomic (#2023)

This commit is contained in:
Max Verevkin 2023-04-11 16:28:32 +03:00 committed by GitHub
parent 16a034a34a
commit c2f29be9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -960,6 +960,9 @@ void CKeybindManager::changeworkspace(std::string args) {
if (ANOTHERMONITOR) if (ANOTHERMONITOR)
g_pCompositor->warpCursorTo(PMONITOR->vecPosition + PMONITOR->vecSize / 2.f); 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); Debug::log(LOG, "Changed to workspace %i", workspaceToChangeTo);
} }