summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-27 13:56:01 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-27 13:56:01 +0200
commit427bc35b6b991da4049c7ccd30b4542410227170 (patch)
treefe7833c9c55a4de1ee7ac8df3de175aa0cc188a9 /src/helpers/Monitor.cpp
parentc9c4b14ef2c20b06d9074d2e50955438d88738bf (diff)
fix empty workspace name on unspecified default
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp4
1 files changed, 4 insertions, 0 deletions
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<CWorkspace>(ID, newDefaultWorkspaceName)).get();
// We are required to set the name here immediately