From d1ea18b492deb9acfd1f209a9d000107eea0ac3f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 25 Feb 2025 13:49:07 +0000 Subject: hyprctl/config: fixup config descriptions, fill out missing ones, provide more data adds current and explicit, better parsing, and fixes missing / invalid ones --- src/render/OpenGL.cpp | 10 +--------- src/render/decorations/CHyprBorderDecoration.cpp | 4 +--- 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'src/render') diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 1a296b65..17224523 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1948,8 +1948,6 @@ void CHyprOpenGLImpl::renderTextureWithBlur(SP tex, const CBox& box, f float blurA, float overallA) { RASSERT(m_RenderData.pMonitor, "Tried to render texture with blur without begin()!"); - static auto PNOBLUROVERSIZED = CConfigValue("decoration:no_blur_on_oversized"); - TRACY_GPU_ZONE("RenderTextureWithBlur"); // make a damage region for this window @@ -1966,11 +1964,6 @@ void CHyprOpenGLImpl::renderTextureWithBlur(SP tex, const CBox& box, f m_RenderData.renderModif.applyToRegion(texDamage); - if (*PNOBLUROVERSIZED && m_RenderData.primarySurfaceUVTopLeft != Vector2D(-1, -1)) { - renderTexture(tex, box, a, round, roundingPower, false, true); - return; - } - // amazing hack: the surface has an opaque region! CRegion inverseOpaque; if (a >= 1.f && std::round(pSurface->current.size.x * m_RenderData.pMonitor->scale) == box.w && std::round(pSurface->current.size.y * m_RenderData.pMonitor->scale) == box.h) { @@ -1982,9 +1975,8 @@ void CHyprOpenGLImpl::renderTextureWithBlur(SP tex, const CBox& box, f renderTexture(tex, box, a, round, roundingPower, false, true); return; } - } else { + } else inverseOpaque = {0, 0, box.width, box.height}; - } inverseOpaque.scale(m_RenderData.pMonitor->scale); diff --git a/src/render/decorations/CHyprBorderDecoration.cpp b/src/render/decorations/CHyprBorderDecoration.cpp index 0df3acde..0d07c2ea 100644 --- a/src/render/decorations/CHyprBorderDecoration.cpp +++ b/src/render/decorations/CHyprBorderDecoration.cpp @@ -147,9 +147,7 @@ eDecorationLayer CHyprBorderDecoration::getDecorationLayer() { } uint64_t CHyprBorderDecoration::getDecorationFlags() { - static auto PPARTOFWINDOW = CConfigValue("general:border_part_of_window"); - - return *PPARTOFWINDOW && !doesntWantBorders() ? DECORATION_PART_OF_MAIN_WINDOW : 0; + return !doesntWantBorders() ? DECORATION_PART_OF_MAIN_WINDOW : 0; } std::string CHyprBorderDecoration::getDisplayName() { -- cgit v1.2.3