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/GLRenderer.cpp | 2 +- src/render/OpenGL.cpp | 50 ++++---- src/render/Renderer.cpp | 107 ++++++++-------- src/render/ShaderLoader.cpp | 2 +- src/render/decorations/CHyprBorderDecoration.cpp | 2 +- .../decorations/CHyprDropShadowDecoration.cpp | 12 +- src/render/decorations/CHyprGroupBarDecoration.cpp | 140 ++++++++++----------- src/render/pass/Pass.cpp | 8 +- 8 files changed, 162 insertions(+), 161 deletions(-) (limited to 'src/render') diff --git a/src/render/GLRenderer.cpp b/src/render/GLRenderer.cpp index 129295ac..35aca7db 100644 --- a/src/render/GLRenderer.cpp +++ b/src/render/GLRenderer.cpp @@ -83,7 +83,7 @@ bool CHyprGLRenderer::beginRenderInternal(PHLMONITOR pMonitor, CRegion& damage, void CHyprGLRenderer::endRender(const std::function& renderingDoneCallback) { const auto PMONITOR = g_pHyprRenderer->m_renderData.pMonitor; - static auto PNVIDIAANTIFLICKER = CConfigValue("opengl:nvidia_anti_flicker"); + static auto PNVIDIAANTIFLICKER = CConfigValue("opengl:nvidia_anti_flicker"); g_pHyprRenderer->m_renderData.damage = m_renderPass.render(g_pHyprRenderer->m_renderData.damage); diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index bf914e31..a87ec2ee 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -315,7 +315,7 @@ CHyprOpenGLImpl::CHyprOpenGLImpl() : m_drmFD(g_pCompositor->m_drmRenderNode.fd > loadGLProc(&m_proc.eglQueryDisplayAttribEXT, "eglQueryDisplayAttribEXT"); } - static const auto GLDEBUG = CConfigValue("debug:gl_debugging"); + static const auto GLDEBUG = CConfigValue("debug:gl_debugging"); if (EGLEXTENSIONS.contains("EGL_KHR_debug") && *GLDEBUG) { loadGLProc(&m_proc.eglDebugMessageControlKHR, "eglDebugMessageControlKHR"); static const EGLAttrib debugAttrs[] = { @@ -781,8 +781,8 @@ void CHyprOpenGLImpl::begin(PHLMONITOR pMonitor, const CRegion& damage_, SP("cursor:zoom_disable_aa"); - static auto PFPINVALIDATE = CConfigValue("debug:invalidate_fp16"); + static auto PZOOMDISABLEAA = CConfigValue("cursor:zoom_disable_aa"); + static auto PFPINVALIDATE = CConfigValue("debug:invalidate_fp16"); auto& m_renderData = g_pHyprRenderer->m_renderData; const auto PMONITOR = m_renderData.pMonitor; TRACY_GPU_ZONE("RenderEnd"); @@ -851,7 +851,7 @@ void CHyprOpenGLImpl::end() { m_renderData.pMonitor.reset(); - static const auto GLDEBUG = CConfigValue("debug:gl_debugging"); + static const auto GLDEBUG = CConfigValue("debug:gl_debugging"); if (*GLDEBUG) { // check for gl errors @@ -875,7 +875,7 @@ const std::array FRAG_SHADERS = { bool CHyprOpenGLImpl::initShaders(const std::string& path) { auto shaders = makeShared(); - static const auto PCM = CConfigValue("render:cm_enabled"); + static const auto PCM = CConfigValue("render:cm_enabled"); try { auto shaderLoader = makeUnique(SHADER_INCLUDES, FRAG_SHADERS, path); @@ -904,7 +904,7 @@ bool CHyprOpenGLImpl::initShaders(const std::string& path) { void CHyprOpenGLImpl::applyScreenShader(const std::string& path) { - static auto PDT = CConfigValue("debug:damage_tracking"); + static auto PDT = CConfigValue("debug:damage_tracking"); m_finalScreenShader->destroy(); @@ -1201,8 +1201,8 @@ void CHyprOpenGLImpl::passCMUniforms(WP shader, const PImageDescription } WP CHyprOpenGLImpl::renderToOutputInternal() { - static const auto PDT = CConfigValue("debug:damage_tracking"); - static const auto PCURSORTIMEOUT = CConfigValue("cursor:inactive_timeout"); + static const auto PDT = CConfigValue("debug:damage_tracking"); + static const auto PCURSORTIMEOUT = CConfigValue("cursor:inactive_timeout"); auto& m_renderData = g_pHyprRenderer->m_renderData; @@ -1274,8 +1274,8 @@ WP CHyprOpenGLImpl::renderToOutputInternal() { } WP CHyprOpenGLImpl::renderToFBInternal(SP tex, const STextureRenderData& data, eTextureType texType, const CBox& newBox) { - static const auto PENABLECM = CConfigValue("render:cm_enabled"); - static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); + static const auto PENABLECM = CConfigValue("render:cm_enabled"); + static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); auto& m_renderData = g_pHyprRenderer->m_renderData; @@ -1632,10 +1632,10 @@ SP CHyprOpenGLImpl::blurFramebufferWithDamage(float a, CRegion* or const auto& glMatrix = g_pHyprRenderer->projectBoxToTarget(MONITORBOX, TRANSFORM); // get the config settings - static auto PBLURSIZE = CConfigValue("decoration:blur:size"); - static auto PBLURPASSES = CConfigValue("decoration:blur:passes"); - static auto PBLURVIBRANCY = CConfigValue("decoration:blur:vibrancy"); - static auto PBLURVIBRANCYDARKNESS = CConfigValue("decoration:blur:vibrancy_darkness"); + static auto PBLURSIZE = CConfigValue("decoration:blur:size"); + static auto PBLURPASSES = CConfigValue("decoration:blur:passes"); + static auto PBLURVIBRANCY = CConfigValue("decoration:blur:vibrancy"); + static auto PBLURVIBRANCYDARKNESS = CConfigValue("decoration:blur:vibrancy_darkness"); const auto BLUR_PASSES = std::clamp(*PBLURPASSES, sc(1), sc(8)); @@ -1654,9 +1654,9 @@ SP CHyprOpenGLImpl::blurFramebufferWithDamage(float a, CRegion* or // Begin with base color adjustments - global brightness and contrast // TODO: make this a part of the first pass maybe to save on a drawcall? { - static auto PBLURCONTRAST = CConfigValue("decoration:blur:contrast"); - static auto PBLURBRIGHTNESS = CConfigValue("decoration:blur:brightness"); - static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); + static auto PBLURCONTRAST = CConfigValue("decoration:blur:contrast"); + static auto PBLURBRIGHTNESS = CConfigValue("decoration:blur:brightness"); + static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); PMIRRORSWAPFB->bind(); @@ -1773,8 +1773,8 @@ SP CHyprOpenGLImpl::blurFramebufferWithDamage(float a, CRegion* or // finalize the image { - static auto PBLURNOISE = CConfigValue("decoration:blur:noise"); - static auto PBLURBRIGHTNESS = CConfigValue("decoration:blur:brightness"); + static auto PBLURNOISE = CConfigValue("decoration:blur:noise"); + static auto PBLURBRIGHTNESS = CConfigValue("decoration:blur:brightness"); if (currentRenderToFB == PMIRRORFB) PMIRRORSWAPFB->bind(); @@ -1839,9 +1839,9 @@ SP CHyprOpenGLImpl::blurFramebufferWithDamage(float a, CRegion* or } void CHyprOpenGLImpl::preRender(PHLMONITOR pMonitor) { - static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); - static auto PBLURXRAY = CConfigValue("decoration:blur:xray"); - static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); + static auto PBLURXRAY = CConfigValue("decoration:blur:xray"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); if (!*PBLURNEWOPTIMIZE || !pMonitor->m_blurFBDirty || !*PBLUR) return; @@ -1927,7 +1927,7 @@ void CHyprOpenGLImpl::renderTextureWithBlurInternal(SP tex, const CBox TRACY_GPU_ZONE("RenderTextureWithBlur"); - static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); + static auto PBLEND = CConfigValue("render:use_shader_blur_blend"); const auto NEEDS_STENCIL = data.discardMode != 0 && (!data.blockBlurOptimization || (data.discardMode & DISCARD_ALPHA)); if (!*PBLEND) { @@ -1979,7 +1979,7 @@ void CHyprOpenGLImpl::renderTextureWithBlurInternal(SP tex, const CBox transformedBox.width / m_renderData.pMonitor->m_pixelSize.x * m_renderData.pMonitor->m_transformedSize.x, transformedBox.height / m_renderData.pMonitor->m_pixelSize.y * m_renderData.pMonitor->m_transformedSize.y}; - static auto PBLURIGNOREOPACITY = CConfigValue("decoration:blur:ignore_opacity"); + static auto PBLURIGNOREOPACITY = CConfigValue("decoration:blur:ignore_opacity"); g_pHyprRenderer->pushMonitorTransformEnabled(true); bool renderModif = g_pHyprRenderer->m_renderData.renderModif.enabled; @@ -2228,7 +2228,7 @@ void CHyprOpenGLImpl::renderRoundedShadow(const CBox& box, int round, float roun CBox newBox = box; g_pHyprRenderer->m_renderData.renderModif.applyToBox(newBox); - static auto PSHADOWPOWER = CConfigValue("decoration:shadow:render_power"); + static auto PSHADOWPOWER = CConfigValue("decoration:shadow:render_power"); const auto SHADOWPOWER = std::clamp(sc(*PSHADOWPOWER), 1, 4); diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index a77e855d..fa1a8a06 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -178,7 +178,7 @@ IHyprRenderer::IHyprRenderer() { m_renderUnfocusedTimer = makeShared( std::nullopt, [this](SP self, void* data) { - static auto PFPS = CConfigValue("misc:render_unfocused_fps"); + static auto PFPS = CConfigValue("misc:render_unfocused_fps"); if (m_renderUnfocused.empty()) return; @@ -540,7 +540,7 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T const auto PWORKSPACE = pWindow->m_workspace; const auto REALPOS = pWindow->m_realPosition->value() + (pWindow->m_pinned ? Vector2D{} : PWORKSPACE->m_renderOffset->value()); - static auto PDIMAROUND = CConfigValue("decoration:dim_around"); + static auto PDIMAROUND = CConfigValue("decoration:dim_around"); CSurfacePassElement::SRenderData renderdata = {pMonitor, time}; CBox textureBox = {REALPOS.x, REALPOS.y, std::max(pWindow->m_realSize->value().x, 5.0), std::max(pWindow->m_realSize->value().y, 5.0)}; @@ -643,7 +643,7 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T } } - static auto PXWLUSENN = CConfigValue("xwayland:use_nearest_neighbor"); + static auto PXWLUSENN = CConfigValue("xwayland:use_nearest_neighbor"); if ((pWindow->m_isX11 && *PXWLUSENN) || pWindow->m_ruleApplicator->nearestNeighbor().valueOrDefault()) renderdata.useNearestNeighbor = true; @@ -713,7 +713,7 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T renderdata.squishOversized = false; // don't squish popups renderdata.popup = true; - static CConfigValue PBLURIGNOREA = CConfigValue("decoration:blur:popups_ignorealpha"); + static CConfigValue PBLURIGNOREA = CConfigValue("decoration:blur:popups_ignorealpha"); renderdata.blur = shouldBlur(pWindow->m_popupHead); @@ -837,8 +837,8 @@ UP IHyprRenderer::bindTempFB(SP fb) { } bool IHyprRenderer::preBlurQueued(PHLMONITORREF pMonitor) { - static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); - static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); if (!pMonitor) return false; @@ -898,7 +898,7 @@ void IHyprRenderer::renderLayer(PHLLS pLayer, PHLMONITOR pMonitor, const Time::s (lockscreen && !pLayer->m_ruleApplicator->aboveLock().valueOrDefault())) return; - static auto PDIMAROUND = CConfigValue("decoration:dim_around"); + static auto PDIMAROUND = CConfigValue("decoration:dim_around"); if (*PDIMAROUND && pLayer->m_ruleApplicator->dimAround().valueOrDefault() && !m_bRenderingSnapshot && !popups) { CRectPassElement::SRectData data; @@ -1001,9 +1001,9 @@ void IHyprRenderer::renderIMEPopup(CInputPopup* pPopup, PHLMONITOR pMonitor, con renderdata.w = SURF->m_current.size.x; renderdata.h = SURF->m_current.size.y; - static auto PBLUR = CConfigValue("decoration:blur:enabled"); - static auto PBLURIMES = CConfigValue("decoration:blur:input_methods"); - static auto PBLURIGNOREA = CConfigValue("decoration:blur:input_methods_ignorealpha"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PBLURIMES = CConfigValue("decoration:blur:input_methods"); + static auto PBLURIGNOREA = CConfigValue("decoration:blur:input_methods_ignorealpha"); renderdata.blur = *PBLURIMES && *PBLUR; if (renderdata.blur) { @@ -1057,11 +1057,11 @@ void IHyprRenderer::renderSessionLockSurface(WP pSurface, P } void IHyprRenderer::renderAllClientsForWorkspace(PHLMONITOR pMonitor, PHLWORKSPACE pWorkspace, const Time::steady_tp& time, const Vector2D& translate, const float& scale) { - static auto PDIMSPECIAL = CConfigValue("decoration:dim_special"); - static auto PBLURSPECIAL = CConfigValue("decoration:blur:special"); - static auto PBLUR = CConfigValue("decoration:blur:enabled"); - static auto PXPMODE = CConfigValue("render:xp_mode"); - static auto PSESSIONLOCKXRAY = CConfigValue("misc:session_lock_xray"); + static auto PDIMSPECIAL = CConfigValue("decoration:dim_special"); + static auto PBLURSPECIAL = CConfigValue("decoration:blur:special"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PXPMODE = CConfigValue("render:xp_mode"); + static auto PSESSIONLOCKXRAY = CConfigValue("misc:session_lock_xray"); if UNLIKELY (!pMonitor) return; @@ -1243,15 +1243,15 @@ SP IHyprRenderer::getBackground(PHLMONITOR pMonitor) { } void IHyprRenderer::renderBackground(PHLMONITOR pMonitor) { - static auto PRENDERTEX = CConfigValue("misc:disable_hyprland_logo"); - static auto PBACKGROUNDCOLOR = CConfigValue("misc:background_color"); - static auto PNOSPLASH = CConfigValue("misc:disable_splash_rendering"); + static auto PRENDERTEX = CConfigValue("misc:disable_hyprland_logo"); + static auto PBACKGROUNDCOLOR = CConfigValue("misc:background_color"); + static auto PNOSPLASH = CConfigValue("misc:disable_splash_rendering"); if (*PRENDERTEX /* inverted cfg flag */ || pMonitor->m_backgroundOpacity->isBeingAnimated()) m_renderPass.add(makeUnique(CClearPassElement::SClearData{CHyprColor(*PBACKGROUNDCOLOR)})); if (!*PRENDERTEX) { - static auto PBACKGROUNDCOLOR = CConfigValue("misc:background_color"); + static auto PBACKGROUNDCOLOR = CConfigValue("misc:background_color"); if (!pMonitor->m_background) pMonitor->m_background = getBackground(pMonitor); @@ -1302,8 +1302,8 @@ void IHyprRenderer::requestBackgroundResource() { if (m_backgroundResource) return; - static auto PNOWALLPAPER = CConfigValue("misc:disable_hyprland_logo"); - static auto PFORCEWALLPAPER = CConfigValue("misc:force_default_wallpaper"); + static auto PNOWALLPAPER = CConfigValue("misc:disable_hyprland_logo"); + static auto PFORCEWALLPAPER = CConfigValue("misc:force_default_wallpaper"); const auto FORCEWALLPAPER = std::clamp(*PFORCEWALLPAPER, sc(-1), sc(2)); @@ -1400,8 +1400,8 @@ SP IHyprRenderer::getBlurTexture(PHLMONITORREF pMonitor) { } bool IHyprRenderer::shouldUseNewBlurOptimizations(PHLLS pLayer, PHLWINDOW pWindow) { - static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); - static auto PBLURXRAY = CConfigValue("decoration:blur:xray"); + static auto PBLURNEWOPTIMIZE = CConfigValue("decoration:blur:new_optimizations"); + static auto PBLURXRAY = CConfigValue("decoration:blur:xray"); if (!getBlurTexture(m_renderData.pMonitor)) return false; @@ -1483,9 +1483,10 @@ SP IHyprRenderer::renderText(const std::string& text, CHyprColor col, pango_layout_set_ellipsize(layoutText, PANGO_ELLIPSIZE_END); } - pango_layout_get_size(layoutText, &textW, &textH); - textW /= PANGO_SCALE; - textH /= PANGO_SCALE; + PangoRectangle rectInk = {}, rectLog = {}; + pango_layout_get_pixel_extents(layoutText, &rectInk, &rectLog); + textW = std::max(rectLog.width, rectInk.x + rectInk.width); + textH = std::max(rectLog.height, rectInk.y + rectInk.height); pango_font_description_free(pangoFD); g_object_unref(layoutText); @@ -1596,7 +1597,7 @@ void IHyprRenderer::renderLockscreen(PHLMONITOR pMonitor, const Time::steady_tp& } void IHyprRenderer::renderSessionLockPrimer(PHLMONITOR pMonitor) { - static auto PSESSIONLOCKXRAY = CConfigValue("misc:session_lock_xray"); + static auto PSESSIONLOCKXRAY = CConfigValue("misc:session_lock_xray"); if (*PSESSIONLOCKXRAY) return; @@ -1904,11 +1905,11 @@ void IHyprRenderer::renderMonitor(PHLMONITOR pMonitor, bool commit) { static std::chrono::high_resolution_clock::time_point renderStartOverlay = std::chrono::high_resolution_clock::now(); static std::chrono::high_resolution_clock::time_point endRenderOverlay = std::chrono::high_resolution_clock::now(); - static auto PDEBUGOVERLAY = CConfigValue("debug:overlay"); - static auto PDAMAGETRACKINGMODE = CConfigValue("debug:damage_tracking"); - static auto PDAMAGEBLINK = CConfigValue("debug:damage_blink"); - static auto PSOLDAMAGE = CConfigValue("debug:render_solitary_wo_damage"); - static auto PVFR = CConfigValue("debug:vfr"); + static auto PDEBUGOVERLAY = CConfigValue("debug:overlay"); + static auto PDAMAGETRACKINGMODE = CConfigValue("debug:damage_tracking"); + static auto PDAMAGEBLINK = CConfigValue("debug:damage_blink"); + static auto PSOLDAMAGE = CConfigValue("debug:render_solitary_wo_damage"); + static auto PVFR = CConfigValue("debug:vfr"); static int damageBlinkCleanup = 0; // because double-buffered @@ -2210,10 +2211,10 @@ static hdr_output_metadata createHDRMetadata(SImageDescription settings, S } void IHyprRenderer::handleFullscreenSettings(PHLMONITOR pMonitor) { - static auto PCT = CConfigValue("render:send_content_type"); - static auto PAUTOHDR = CConfigValue("render:cm_auto_hdr"); - static auto PNONSHADER = CConfigValue("render:non_shader_cm"); - static auto PNSINTEROP = CConfigValue("render:non_shader_cm_interop"); + static auto PCT = CConfigValue("render:send_content_type"); + static auto PAUTOHDR = CConfigValue("render:cm_auto_hdr"); + static auto PNONSHADER = CConfigValue("render:non_shader_cm"); + static auto PNSINTEROP = CConfigValue("render:non_shader_cm_interop"); const bool configuredHDR = (pMonitor->m_cmType == NCMType::CM_HDR_EDID || pMonitor->m_cmType == NCMType::CM_HDR); bool wantHDR = configuredHDR; @@ -2628,7 +2629,7 @@ void IHyprRenderer::damageSurface(SP pSurface, double x, dou m->addDamage(damageBoxForEach); } - static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); + static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); if (*PLOGDAMAGE) Log::logger->log(Log::DEBUG, "Damage: Surface (extents): xy: {}, {} wh: {}, {}", damageBox.pixman()->extents.x1, damageBox.pixman()->extents.y1, @@ -2653,7 +2654,7 @@ void IHyprRenderer::damageWindow(PHLWINDOW pWindow, bool forceFull) { } } - static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); + static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); if (*PLOGDAMAGE) Log::logger->log(Log::DEBUG, "Damage: Window ({}): xy: {}, {} wh: {}, {}", pWindow->m_title, windowBox.x, windowBox.y, windowBox.width, windowBox.height); @@ -2666,7 +2667,7 @@ void IHyprRenderer::damageMonitor(PHLMONITOR pMonitor) { CBox damageBox = {0, 0, INT16_MAX, INT16_MAX}; pMonitor->addDamage(damageBox); - static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); + static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); if (*PLOGDAMAGE) Log::logger->log(Log::DEBUG, "Damage: Monitor {}", pMonitor->m_name); @@ -2686,7 +2687,7 @@ void IHyprRenderer::damageBox(const CBox& box, bool skipFrameSchedule) { } } - static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); + static auto PLOGDAMAGE = CConfigValue("debug:log_damage"); if (*PLOGDAMAGE) Log::logger->log(Log::DEBUG, "Damage: Box: xy: {}, {} wh: {}, {}", box.x, box.y, box.w, box.h); @@ -2795,11 +2796,11 @@ void IHyprRenderer::setCursorFromName(const std::string& name, bool force) { } void IHyprRenderer::ensureCursorRenderingMode() { - static auto PINVISIBLE = CConfigValue("cursor:invisible"); - static auto PCURSORTIMEOUT = CConfigValue("cursor:inactive_timeout"); - static auto PHIDEONTOUCH = CConfigValue("cursor:hide_on_touch"); - static auto PHIDEONTABLET = CConfigValue("cursor:hide_on_tablet"); - static auto PHIDEONKEY = CConfigValue("cursor:hide_on_key_press"); + static auto PINVISIBLE = CConfigValue("cursor:invisible"); + static auto PCURSORTIMEOUT = CConfigValue("cursor:inactive_timeout"); + static auto PHIDEONTOUCH = CConfigValue("cursor:hide_on_touch"); + static auto PHIDEONTABLET = CConfigValue("cursor:hide_on_tablet"); + static auto PHIDEONKEY = CConfigValue("cursor:hide_on_key_press"); if (*PCURSORTIMEOUT <= 0) m_cursorHiddenConditions.hiddenOnTimeout = false; @@ -2953,7 +2954,7 @@ bool IHyprRenderer::isMgpu() { } void IHyprRenderer::addWindowToRenderUnfocused(PHLWINDOW window) { - static auto PFPS = CConfigValue("misc:render_unfocused_fps"); + static auto PFPS = CConfigValue("misc:render_unfocused_fps"); if (*PFPS <= 0) return; @@ -3114,7 +3115,7 @@ void IHyprRenderer::makeSnapshot(WP popup) { } void IHyprRenderer::renderSnapshot(PHLWINDOW pWindow) { - static auto PDIMAROUND = CConfigValue("decoration:dim_around"); + static auto PDIMAROUND = CConfigValue("decoration:dim_around"); PHLWINDOWREF ref{pWindow}; @@ -3219,7 +3220,7 @@ void IHyprRenderer::renderSnapshot(WP popup) { if (!popup->m_snapshotFB) return; - static CConfigValue PBLURIGNOREA = CConfigValue("decoration:blur:popups_ignorealpha"); + static CConfigValue PBLURIGNOREA = CConfigValue("decoration:blur:popups_ignorealpha"); const auto FBDATA = popup->m_snapshotFB; @@ -3269,7 +3270,7 @@ bool IHyprRenderer::shouldBlur(PHLLS ls) { if (m_bRenderingSnapshot) return false; - static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); return *PBLUR && ls->m_ruleApplicator->blur().valueOrDefault(); } @@ -3277,21 +3278,21 @@ bool IHyprRenderer::shouldBlur(PHLWINDOW w) { if (m_bRenderingSnapshot) return false; - static auto PBLUR = CConfigValue("decoration:blur:enabled"); + static auto PBLUR = CConfigValue("decoration:blur:enabled"); const bool DONT_BLUR = w->m_ruleApplicator->noBlur().valueOrDefault() || w->m_ruleApplicator->RGBX().valueOrDefault() || w->opaque(); return *PBLUR && !DONT_BLUR; } bool IHyprRenderer::shouldBlur(WP p) { - static CConfigValue PBLURPOPUPS = CConfigValue("decoration:blur:popups"); - static CConfigValue PBLUR = CConfigValue("decoration:blur:enabled"); + static CConfigValue PBLURPOPUPS = CConfigValue("decoration:blur:popups"); + static CConfigValue PBLUR = CConfigValue("decoration:blur:enabled"); return *PBLURPOPUPS && *PBLUR; } SP IHyprRenderer::renderSplash(const std::function(const int, const int, unsigned char* const)>& handleData, const int fontSize, const int maxWidth, const int maxHeight) { - static auto PSPLASHCOLOR = CConfigValue("misc:col.splash"); + static auto PSPLASHCOLOR = CConfigValue("misc:col.splash"); static auto PSPLASHFONT = CConfigValue("misc:splash_font_family"); static auto FALLBACKFONT = CConfigValue("misc:font_family"); diff --git a/src/render/ShaderLoader.cpp b/src/render/ShaderLoader.cpp index 388c1d43..50ab61d0 100644 --- a/src/render/ShaderLoader.cpp +++ b/src/render/ShaderLoader.cpp @@ -135,7 +135,7 @@ std::string CShaderLoader::process(const std::string& filename, const std::map("render:cm_enabled"); + static const auto PCM = CConfigValue("render:cm_enabled"); if (!*PCM) features &= ~(SH_FEAT_CM | SH_FEAT_TONEMAP | SH_FEAT_SDR_MOD); diff --git a/src/render/decorations/CHyprBorderDecoration.cpp b/src/render/decorations/CHyprBorderDecoration.cpp index 603d8635..93565f16 100644 --- a/src/render/decorations/CHyprBorderDecoration.cpp +++ b/src/render/decorations/CHyprBorderDecoration.cpp @@ -147,7 +147,7 @@ eDecorationLayer CHyprBorderDecoration::getDecorationLayer() { } uint64_t CHyprBorderDecoration::getDecorationFlags() { - static auto PPARTOFWINDOW = CConfigValue("decoration:border_part_of_window"); + static auto PPARTOFWINDOW = CConfigValue("decoration:border_part_of_window"); return *PPARTOFWINDOW && !doesntWantBorders() ? DECORATION_PART_OF_MAIN_WINDOW : 0; } diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index 3085facb..8c681301 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -38,7 +38,7 @@ std::string CHyprDropShadowDecoration::getDisplayName() { } void CHyprDropShadowDecoration::damageEntire() { - static auto PSHADOWS = CConfigValue("decoration:shadow:enabled"); + static auto PSHADOWS = CConfigValue("decoration:shadow:enabled"); if (*PSHADOWS != 1) return; // disabled @@ -88,7 +88,7 @@ void CHyprDropShadowDecoration::draw(PHLMONITOR pMonitor, float const& a) { } bool CHyprDropShadowDecoration::canRender(PHLMONITOR pMonitor) { - static auto PSHADOWS = CConfigValue("decoration:shadow:enabled"); + static auto PSHADOWS = CConfigValue("decoration:shadow:enabled"); if (*PSHADOWS != 1) return false; // disabled @@ -115,9 +115,9 @@ SShadowRenderData CHyprDropShadowDecoration::getRenderData(PHLMONITOR pMonitor, const auto PWINDOW = m_window.lock(); - static auto PSHADOWSIZE = CConfigValue("decoration:shadow:range"); - static auto PSHADOWSCALE = CConfigValue("decoration:shadow:scale"); - static auto PSHADOWOFFSET = CConfigValue("decoration:shadow:offset"); + static auto PSHADOWSIZE = CConfigValue("decoration:shadow:range"); + static auto PSHADOWSCALE = CConfigValue("decoration:shadow:scale"); + static auto PSHADOWOFFSET = CConfigValue("decoration:shadow:offset"); const auto BORDERSIZE = PWINDOW->getRealBorderSize(); const auto ROUNDINGBASE = PWINDOW->rounding(); @@ -200,7 +200,7 @@ eDecorationLayer CHyprDropShadowDecoration::getDecorationLayer() { } void CHyprDropShadowDecoration::drawShadowInternal(const CBox& box, int round, float roundingPower, int range, CHyprColor color, float a) { - static auto PSHADOWSHARP = CConfigValue("decoration:shadow:sharp"); + static auto PSHADOWSHARP = CConfigValue("decoration:shadow:sharp"); if (box.w < 1 || box.h < 1) return; diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index b8f6d814..fa4b157e 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -23,23 +23,23 @@ static SP m_tGradientLockedInactive; constexpr int BAR_TEXT_PAD = 2; CHyprGroupBarDecoration::CHyprGroupBarDecoration(PHLWINDOW pWindow) : IHyprWindowDecoration(pWindow), m_window(pWindow) { - static auto PGRADIENTS = CConfigValue("group:groupbar:enabled"); - static auto PENABLED = CConfigValue("group:groupbar:gradients"); + static auto PGRADIENTS = CConfigValue("group:groupbar:enabled"); + static auto PENABLED = CConfigValue("group:groupbar:gradients"); if (*PENABLED && *PGRADIENTS) refreshGroupBarGradients(); } SDecorationPositioningInfo CHyprGroupBarDecoration::getPositioningInfo() { - static auto PHEIGHT = CConfigValue("group:groupbar:height"); - static auto PINDICATORGAP = CConfigValue("group:groupbar:indicator_gap"); - static auto PINDICATORHEIGHT = CConfigValue("group:groupbar:indicator_height"); - static auto PRENDERTITLES = CConfigValue("group:groupbar:render_titles"); - static auto PGRADIENTS = CConfigValue("group:groupbar:gradients"); - static auto PPRIORITY = CConfigValue("group:groupbar:priority"); - static auto PSTACKED = CConfigValue("group:groupbar:stacked"); - static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); - static auto PKEEPUPPERGAP = CConfigValue("group:groupbar:keep_upper_gap"); + static auto PHEIGHT = CConfigValue("group:groupbar:height"); + static auto PINDICATORGAP = CConfigValue("group:groupbar:indicator_gap"); + static auto PINDICATORHEIGHT = CConfigValue("group:groupbar:indicator_height"); + static auto PRENDERTITLES = CConfigValue("group:groupbar:render_titles"); + static auto PGRADIENTS = CConfigValue("group:groupbar:gradients"); + static auto PPRIORITY = CConfigValue("group:groupbar:priority"); + static auto PSTACKED = CConfigValue("group:groupbar:stacked"); + static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); + static auto PKEEPUPPERGAP = CConfigValue("group:groupbar:keep_upper_gap"); SDecorationPositioningInfo info; info.policy = DECORATION_POSITION_STICKY; @@ -105,33 +105,33 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) { if (!VISIBLE) return; - static auto PRENDERTITLES = CConfigValue("group:groupbar:render_titles"); - static auto PTITLEFONTSIZE = CConfigValue("group:groupbar:font_size"); - static auto PHEIGHT = CConfigValue("group:groupbar:height"); - static auto PINDICATORGAP = CConfigValue("group:groupbar:indicator_gap"); - static auto PINDICATORHEIGHT = CConfigValue("group:groupbar:indicator_height"); - static auto PGRADIENTS = CConfigValue("group:groupbar:gradients"); - static auto PSTACKED = CConfigValue("group:groupbar:stacked"); - static auto PROUNDING = CConfigValue("group:groupbar:rounding"); - static auto PROUNDINGPOWER = CConfigValue("group:groupbar:rounding_power"); - static auto PGRADIENTROUNDING = CConfigValue("group:groupbar:gradient_rounding"); - static auto PGRADIENTROUNDINGPOWER = CConfigValue("group:groupbar:gradient_rounding_power"); - static auto PGRADIENTROUNDINGONLYEDGES = CConfigValue("group:groupbar:gradient_round_only_edges"); - static auto PROUNDONLYEDGES = CConfigValue("group:groupbar:round_only_edges"); - static auto PGROUPCOLACTIVE = CConfigValue("group:groupbar:col.active"); - static auto PGROUPCOLINACTIVE = CConfigValue("group:groupbar:col.inactive"); - static auto PGROUPCOLACTIVELOCKED = CConfigValue("group:groupbar:col.locked_active"); - static auto PGROUPCOLINACTIVELOCKED = CConfigValue("group:groupbar:col.locked_inactive"); - static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); - static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); - static auto PKEEPUPPERGAP = CConfigValue("group:groupbar:keep_upper_gap"); - static auto PTEXTOFFSET = CConfigValue("group:groupbar:text_offset"); - static auto PTEXTPADDING = CConfigValue("group:groupbar:text_padding"); - static auto PBLUR = CConfigValue("group:groupbar:blur"); - auto* const GROUPCOLACTIVE = sc((PGROUPCOLACTIVE.ptr())->getData()); - auto* const GROUPCOLINACTIVE = sc((PGROUPCOLINACTIVE.ptr())->getData()); - auto* const GROUPCOLACTIVELOCKED = sc((PGROUPCOLACTIVELOCKED.ptr())->getData()); - auto* const GROUPCOLINACTIVELOCKED = sc((PGROUPCOLINACTIVELOCKED.ptr())->getData()); + static auto PRENDERTITLES = CConfigValue("group:groupbar:render_titles"); + static auto PTITLEFONTSIZE = CConfigValue("group:groupbar:font_size"); + static auto PHEIGHT = CConfigValue("group:groupbar:height"); + static auto PINDICATORGAP = CConfigValue("group:groupbar:indicator_gap"); + static auto PINDICATORHEIGHT = CConfigValue("group:groupbar:indicator_height"); + static auto PGRADIENTS = CConfigValue("group:groupbar:gradients"); + static auto PSTACKED = CConfigValue("group:groupbar:stacked"); + static auto PROUNDING = CConfigValue("group:groupbar:rounding"); + static auto PROUNDINGPOWER = CConfigValue("group:groupbar:rounding_power"); + static auto PGRADIENTROUNDING = CConfigValue("group:groupbar:gradient_rounding"); + static auto PGRADIENTROUNDINGPOWER = CConfigValue("group:groupbar:gradient_rounding_power"); + static auto PGRADIENTROUNDINGONLYEDGES = CConfigValue("group:groupbar:gradient_round_only_edges"); + static auto PROUNDONLYEDGES = CConfigValue("group:groupbar:round_only_edges"); + static auto PGROUPCOLACTIVE = CConfigValue("group:groupbar:col.active"); + static auto PGROUPCOLINACTIVE = CConfigValue("group:groupbar:col.inactive"); + static auto PGROUPCOLACTIVELOCKED = CConfigValue("group:groupbar:col.locked_active"); + static auto PGROUPCOLINACTIVELOCKED = CConfigValue("group:groupbar:col.locked_inactive"); + static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); + static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); + static auto PKEEPUPPERGAP = CConfigValue("group:groupbar:keep_upper_gap"); + static auto PTEXTOFFSET = CConfigValue("group:groupbar:text_offset"); + static auto PTEXTPADDING = CConfigValue("group:groupbar:text_padding"); + static auto PBLUR = CConfigValue("group:groupbar:blur"); + auto* const GROUPCOLACTIVE = sc((PGROUPCOLACTIVE.ptr())); + auto* const GROUPCOLINACTIVE = sc((PGROUPCOLINACTIVE.ptr())); + auto* const GROUPCOLACTIVELOCKED = sc((PGROUPCOLACTIVELOCKED.ptr())); + auto* const GROUPCOLINACTIVELOCKED = sc((PGROUPCOLINACTIVELOCKED.ptr())); const auto ASSIGNEDBOX = assignedBoxGlobal(); @@ -282,17 +282,17 @@ void CHyprGroupBarDecoration::invalidateTextures() { CTitleTex::CTitleTex(PHLWINDOW pWindow, const Vector2D& bufferSize, const float monitorScale) : m_content(pWindow->m_title), m_windowOwner(pWindow) { static auto FALLBACKFONT = CConfigValue("misc:font_family"); static auto PTITLEFONTFAMILY = CConfigValue("group:groupbar:font_family"); - static auto PTITLEFONTSIZE = CConfigValue("group:groupbar:font_size"); - static auto PTEXTCOLORACTIVE = CConfigValue("group:groupbar:text_color"); - static auto PTEXTCOLORINACTIVE = CConfigValue("group:groupbar:text_color_inactive"); - static auto PTEXTCOLORLOCKEDACTIVE = CConfigValue("group:groupbar:text_color_locked_active"); - static auto PTEXTCOLORLOCKEDINACTIVE = CConfigValue("group:groupbar:text_color_locked_inactive"); + static auto PTITLEFONTSIZE = CConfigValue("group:groupbar:font_size"); + static auto PTEXTCOLORACTIVE = CConfigValue("group:groupbar:text_color"); + static auto PTEXTCOLORINACTIVE = CConfigValue("group:groupbar:text_color_inactive"); + static auto PTEXTCOLORLOCKEDACTIVE = CConfigValue("group:groupbar:text_color_locked_active"); + static auto PTEXTCOLORLOCKEDINACTIVE = CConfigValue("group:groupbar:text_color_locked_inactive"); - static auto PTITLEFONTWEIGHTACTIVE = CConfigValue("group:groupbar:font_weight_active"); - static auto PTITLEFONTWEIGHTINACTIVE = CConfigValue("group:groupbar:font_weight_inactive"); + static auto PTITLEFONTWEIGHTACTIVE = CConfigValue("group:groupbar:font_weight_active"); + static auto PTITLEFONTWEIGHTINACTIVE = CConfigValue("group:groupbar:font_weight_inactive"); - const auto FONTWEIGHTACTIVE = sc((PTITLEFONTWEIGHTACTIVE.ptr())->getData()); - const auto FONTWEIGHTINACTIVE = sc((PTITLEFONTWEIGHTINACTIVE.ptr())->getData()); + const auto FONTWEIGHTACTIVE = sc((PTITLEFONTWEIGHTACTIVE.ptr())); + const auto FONTWEIGHTINACTIVE = sc((PTITLEFONTWEIGHTINACTIVE.ptr())); const CHyprColor COLORACTIVE = CHyprColor(*PTEXTCOLORACTIVE); const CHyprColor COLORINACTIVE = *PTEXTCOLORINACTIVE == -1 ? COLORACTIVE : CHyprColor(*PTEXTCOLORINACTIVE); @@ -351,17 +351,17 @@ static SP renderGradient(Config::CGradientValueData* grad) { } void refreshGroupBarGradients() { - static auto PGRADIENTS = CConfigValue("group:groupbar:enabled"); - static auto PENABLED = CConfigValue("group:groupbar:gradients"); - - static auto PGROUPCOLACTIVE = CConfigValue("group:groupbar:col.active"); - static auto PGROUPCOLINACTIVE = CConfigValue("group:groupbar:col.inactive"); - static auto PGROUPCOLACTIVELOCKED = CConfigValue("group:groupbar:col.locked_active"); - static auto PGROUPCOLINACTIVELOCKED = CConfigValue("group:groupbar:col.locked_inactive"); - auto* const GROUPCOLACTIVE = sc((PGROUPCOLACTIVE.ptr())->getData()); - auto* const GROUPCOLINACTIVE = sc((PGROUPCOLINACTIVE.ptr())->getData()); - auto* const GROUPCOLACTIVELOCKED = sc((PGROUPCOLACTIVELOCKED.ptr())->getData()); - auto* const GROUPCOLINACTIVELOCKED = sc((PGROUPCOLINACTIVELOCKED.ptr())->getData()); + static auto PGRADIENTS = CConfigValue("group:groupbar:enabled"); + static auto PENABLED = CConfigValue("group:groupbar:gradients"); + + static auto PGROUPCOLACTIVE = CConfigValue("group:groupbar:col.active"); + static auto PGROUPCOLINACTIVE = CConfigValue("group:groupbar:col.inactive"); + static auto PGROUPCOLACTIVELOCKED = CConfigValue("group:groupbar:col.locked_active"); + static auto PGROUPCOLINACTIVELOCKED = CConfigValue("group:groupbar:col.locked_inactive"); + auto* const GROUPCOLACTIVE = sc((PGROUPCOLACTIVE.ptr())); + auto* const GROUPCOLINACTIVE = sc((PGROUPCOLINACTIVE.ptr())); + auto* const GROUPCOLACTIVELOCKED = sc((PGROUPCOLACTIVELOCKED.ptr())); + auto* const GROUPCOLINACTIVELOCKED = sc((PGROUPCOLINACTIVELOCKED.ptr())); if (m_tGradientActive && m_tGradientActive->ok()) { m_tGradientActive.reset(); @@ -380,9 +380,9 @@ void refreshGroupBarGradients() { } bool CHyprGroupBarDecoration::onBeginWindowDragOnDeco(const Vector2D& pos) { - static auto PSTACKED = CConfigValue("group:groupbar:stacked"); - static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); - static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); + static auto PSTACKED = CConfigValue("group:groupbar:stacked"); + static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); + static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); if (m_window->m_group->size() == 1) return false; @@ -413,9 +413,9 @@ bool CHyprGroupBarDecoration::onBeginWindowDragOnDeco(const Vector2D& pos) { } bool CHyprGroupBarDecoration::onEndWindowDragOnDeco(const Vector2D& pos, PHLWINDOW pDraggedWindow) { - static auto PDRAGINTOGROUP = CConfigValue("group:drag_into_group"); - static auto PMERGEFLOATEDINTOTILEDONGROUPBAR = CConfigValue("group:merge_floated_into_tiled_on_groupbar"); - static auto PMERGEGROUPSONGROUPBAR = CConfigValue("group:merge_groups_on_groupbar"); + static auto PDRAGINTOGROUP = CConfigValue("group:drag_into_group"); + static auto PMERGEFLOATEDINTOTILEDONGROUPBAR = CConfigValue("group:merge_floated_into_tiled_on_groupbar"); + static auto PMERGEGROUPSONGROUPBAR = CConfigValue("group:merge_groups_on_groupbar"); const bool FLOATEDINTOTILED = !m_window->m_isFloating && !g_layoutManager->dragController()->draggingTiled(); if (!pDraggedWindow->canBeGroupedInto(m_window->m_group) || (*PDRAGINTOGROUP != 1 && *PDRAGINTOGROUP != 2) || (FLOATEDINTOTILED && !*PMERGEFLOATEDINTOTILEDONGROUPBAR) || @@ -431,16 +431,16 @@ bool CHyprGroupBarDecoration::onEndWindowDragOnDeco(const Vector2D& pos, PHLWIND } bool CHyprGroupBarDecoration::onMouseButtonOnDeco(const Vector2D& pos, const IPointer::SButtonEvent& e) { - static auto PSTACKED = CConfigValue("group:groupbar:stacked"); - static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); - static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); + static auto PSTACKED = CConfigValue("group:groupbar:stacked"); + static auto POUTERGAP = CConfigValue("group:groupbar:gaps_out"); + static auto PINNERGAP = CConfigValue("group:groupbar:gaps_in"); if (m_window->isEffectiveInternalFSMode(FSMODE_FULLSCREEN)) return true; const float BARRELATIVEX = pos.x - assignedBoxGlobal().x; const float BARRELATIVEY = pos.y - assignedBoxGlobal().y; const int WINDOWINDEX = *PSTACKED ? (BARRELATIVEY / (m_barHeight + *POUTERGAP)) : (BARRELATIVEX) / (m_barWidth + *PINNERGAP); - static auto PFOLLOWMOUSE = CConfigValue("input:follow_mouse"); + static auto PFOLLOWMOUSE = CConfigValue("input:follow_mouse"); // close window on middle click if (e.button == 274) { @@ -481,7 +481,7 @@ bool CHyprGroupBarDecoration::onMouseButtonOnDeco(const Vector2D& pos, const IPo } bool CHyprGroupBarDecoration::onScrollOnDeco(const Vector2D& pos, const IPointer::SAxisEvent e) { - static auto PGROUPBARSCROLLING = CConfigValue("group:groupbar:scrolling"); + static auto PGROUPBARSCROLLING = CConfigValue("group:groupbar:scrolling"); if (!*PGROUPBARSCROLLING || !m_window->m_group) return false; @@ -529,6 +529,6 @@ CBox CHyprGroupBarDecoration::assignedBoxGlobal() { } bool CHyprGroupBarDecoration::visible() { - static auto PENABLED = CConfigValue("group:groupbar:enabled"); + static auto PENABLED = CConfigValue("group:groupbar:enabled"); return *PENABLED && m_window->m_ruleApplicator->decorate().valueOrDefault(); } 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