From 260ef788f55cdbccd3c32f57d4eeb4e37dc44aaf Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 13 Apr 2023 22:21:11 +0100 Subject: internal: don't sanity check workspaces on internal ws calls --- src/Compositor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index a2a82b4e..55f9e0b4 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1888,12 +1888,8 @@ void CCompositor::moveWorkspaceToMonitor(CWorkspace* pWorkspace, CMonitor* pMoni Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing %d", nextWorkspaceOnMonitorID); - pWorkspace->m_bIndestructible = true; // so that changeworkspace doesn't yeet it if it's empty - g_pKeybindManager->focusMonitor(std::to_string(POLDMON->ID)); - g_pKeybindManager->changeworkspace(std::to_string(nextWorkspaceOnMonitorID)); - - pWorkspace->m_bIndestructible = false; + g_pKeybindManager->changeworkspace("[internal]" + std::to_string(nextWorkspaceOnMonitorID)); // move the workspace -- cgit v1.2.3