diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 8dc239fc..9e7f76c4 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -81,6 +81,10 @@ void CMonitor::onConnect(bool noRule) { g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID); PNEWWORKSPACE->startAnim(true, true, true); } else { + + if (newDefaultWorkspaceName == "") + newDefaultWorkspaceName = std::to_string(WORKSPACEID); + PNEWWORKSPACE = g_pCompositor->m_vWorkspaces.emplace_back(std::make_unique(ID, newDefaultWorkspaceName)).get(); // We are required to set the name here immediately