summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-21 22:25:54 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-21 22:25:54 +0200
commit84d6e640ff6e48c8161e1922349c7bce6b0b335f (patch)
treefdf983392b1ab5d5f887c219588ca0857dc485c3 /src/config/ConfigManager.cpp
parent4a3f9ccba2cebaf62d6001c2b700367785a7179c (diff)
support all workspace types in workspace keyword
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index d511c05a..b76ab965 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -495,11 +495,11 @@ void CConfigManager::handleWindowRule(const std::string& command, const std::str
void CConfigManager::handleDefaultWorkspace(const std::string& command, const std::string& value) {
const auto DISPLAY = value.substr(0, value.find_first_of(','));
- const auto WORKSPACEID = stoi(value.substr(value.find_first_of(',') + 1));
+ const auto WORKSPACE = value.substr(value.find_first_of(',') + 1);
for (auto& mr : m_dMonitorRules) {
if (mr.name == DISPLAY) {
- mr.defaultWorkspaceID = WORKSPACEID;
+ mr.defaultWorkspace = WORKSPACE;
break;
}
}