summaryrefslogtreecommitdiff
path: root/src/layout/supplementary/WorkspaceAlgoMatcher.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-20 13:52:37 -0400
committerGitHub <noreply@github.com>2026-03-20 17:52:37 +0000
commit8726a7363eb9213235e6e23657668e0daac39a5b (patch)
tree42eeb40f6f81a9ccec1455f308e56173e9dcce4b /src/layout/supplementary/WorkspaceAlgoMatcher.cpp
parentb940b0d2c197841b0f648598ee782dbaf9e0a89b (diff)
config: cleanup the entire config infrastructure (#13785)
Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
Diffstat (limited to 'src/layout/supplementary/WorkspaceAlgoMatcher.cpp')
-rw-r--r--src/layout/supplementary/WorkspaceAlgoMatcher.cpp6
1 files changed, 3 insertions, 3 deletions
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<IFloatingAlgorithm> CWorkspaceAlgoMatcher::algoForNameFloat(const std::string
std::string CWorkspaceAlgoMatcher::tiledAlgoForWorkspace(const PHLWORKSPACE& w) {
static auto PLAYOUT = CConfigValue<Hyprlang::STRING>("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<CAlgorithm> CWorkspaceAlgoMatcher::createAlgorithmForWorkspace(PHLWORKSPACE w) {