aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-30 15:18:12 +0200
committerVaxry <[email protected]>2024-08-30 15:53:44 +0200
commit1c9d56998dbf3a9b61e13573e9e91d149fe65969 (patch)
treea9939d223d864582ae0ea8b419221534a10b27c9 /src/render/OpenGL.cpp
parent242e06b24212b61e7afbdf5cf4adae8886a28abd (diff)
downloadHyprland-1c9d56998dbf3a9b61e13573e9e91d149fe65969.tar.gz
Hyprland-1c9d56998dbf3a9b61e13573e9e91d149fe65969.zip
xdg-dialog: implement new protocol
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 91849701..74d3d3cd 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -1378,8 +1378,7 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(SP<CTexture> tex, CBox* pB
CBox newBox = *pBox;
m_RenderData.renderModif.applyToBox(newBox);
- static auto PDIMINACTIVE = CConfigValue<Hyprlang::INT>("decoration:dim_inactive");
- static auto PDT = CConfigValue<Hyprlang::INT>("debug:damage_tracking");
+ static auto PDT = CConfigValue<Hyprlang::INT>("debug:damage_tracking");
// get the needed transform for this texture
const bool TRANSFORMS_MATCH = wlTransformToHyprutils(m_RenderData.pMonitor->transform) == tex->m_eTransform; // FIXME: combine them properly!!!
@@ -1493,7 +1492,7 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(SP<CTexture> tex, CBox* pB
glUniform2f(shader->fullSize, FULLSIZE.x, FULLSIZE.y);
glUniform1f(shader->radius, round);
- if (allowDim && m_pCurrentWindow.lock() && *PDIMINACTIVE) {
+ if (allowDim && m_pCurrentWindow.lock()) {
glUniform1i(shader->applyTint, 1);
const auto DIM = m_pCurrentWindow->m_fDimPercent.value();
glUniform3f(shader->tint, 1.f - DIM, 1.f - DIM, 1.f - DIM);