internal: don't sanity check workspaces on internal ws calls

This commit is contained in:
vaxerski
2023-04-13 22:21:11 +01:00
parent 6131e0bef7
commit 260ef788f5
2 changed files with 3 additions and 6 deletions

View File

@@ -961,7 +961,8 @@ void CKeybindManager::changeworkspace(std::string args) {
g_pCompositor->warpCursorTo(PMONITOR->vecPosition + PMONITOR->vecSize / 2.f);
// Destroy old workspace if it is empty
g_pCompositor->sanityCheckWorkspaces();
if (!internal)
g_pCompositor->sanityCheckWorkspaces();
Debug::log(LOG, "Changed to workspace %i", workspaceToChangeTo);
}