From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: config/lua: init lua config manager, use lua if available (#13817) Adds a new lua config manager, which will automatically be used if there is a lua config present. --- src/render/pass/Pass.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/render/pass/Pass.cpp') diff --git a/src/render/pass/Pass.cpp b/src/render/pass/Pass.cpp index e4ef6f96..05e83e70 100644 --- a/src/render/pass/Pass.cpp +++ b/src/render/pass/Pass.cpp @@ -29,7 +29,7 @@ void CRenderPass::add(UP&& el) { void CRenderPass::simplify(bool willBlur, const CRegion& liveBlurRegion) { const auto pMonitor = g_pHyprRenderer->m_renderData.pMonitor; - static auto PDEBUGPASS = CConfigValue("debug:pass"); + static auto PDEBUGPASS = CConfigValue("debug:pass"); // TODO: use precompute blur for instances where there is nothing in between @@ -102,7 +102,7 @@ void CRenderPass::clear() { CRegion CRenderPass::render(const CRegion& damage_) { const auto pMonitor = g_pHyprRenderer->m_renderData.pMonitor; - static auto PDEBUGPASS = CConfigValue("debug:pass"); + static auto PDEBUGPASS = CConfigValue("debug:pass"); // single pass: cache blur results and gather aggregate info bool willBlur = false, willDisableSimplification = false, willPrecomputeBlur = false; @@ -309,8 +309,8 @@ void CRenderPass::renderDebugData() { float CRenderPass::oneBlurRadius() { // TODO: is this exact range correct? - static auto PBLURSIZE = CConfigValue("decoration:blur:size"); - static auto PBLURPASSES = CConfigValue("decoration:blur:passes"); + static auto PBLURSIZE = CConfigValue("decoration:blur:size"); + static auto PBLURPASSES = CConfigValue("decoration:blur:passes"); const auto BLUR_PASSES = std::clamp(*PBLURPASSES, sc(1), sc(8)); -- cgit v1.2.3