From 8726a7363eb9213235e6e23657668e0daac39a5b Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 20 Mar 2026 13:52:37 -0400 Subject: config: cleanup the entire config infrastructure (#13785) Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff --- src/layout/supplementary/WorkspaceAlgoMatcher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/layout/supplementary/WorkspaceAlgoMatcher.cpp') diff --git a/src/layout/supplementary/WorkspaceAlgoMatcher.cpp b/src/layout/supplementary/WorkspaceAlgoMatcher.cpp index b476c3a0..98cdb773 100644 --- a/src/layout/supplementary/WorkspaceAlgoMatcher.cpp +++ b/src/layout/supplementary/WorkspaceAlgoMatcher.cpp @@ -1,7 +1,7 @@ #include "WorkspaceAlgoMatcher.hpp" #include "../../config/ConfigValue.hpp" -#include "../../config/ConfigManager.hpp" +#include "../../config/shared/workspace/WorkspaceRuleManager.hpp" #include "../algorithm/Algorithm.hpp" #include "../space/Space.hpp" @@ -103,8 +103,8 @@ UP CWorkspaceAlgoMatcher::algoForNameFloat(const std::string std::string CWorkspaceAlgoMatcher::tiledAlgoForWorkspace(const PHLWORKSPACE& w) { static auto PLAYOUT = CConfigValue("general:layout"); - auto rule = g_pConfigManager->getWorkspaceRuleFor(w); - return rule.layout.value_or(*PLAYOUT); + auto rule = Config::workspaceRuleMgr()->getWorkspaceRuleFor(w); + return rule && rule->m_layout.has_value() ? rule->m_layout.value() : *PLAYOUT; } SP CWorkspaceAlgoMatcher::createAlgorithmForWorkspace(PHLWORKSPACE w) { -- cgit v1.2.3