aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-28 18:57:32 +0200
committervaxerski <[email protected]>2022-05-28 18:57:32 +0200
commit9ede0f1c7d54dc6b3203ca4e103a79af3203ba51 (patch)
tree5f1041fd592f1b805a0c8de7583e50fa87ebe34e
parent10a9325a6a5162a2997014afb3b1184823d45b08 (diff)
downloadHyprland-9ede0f1c7d54dc6b3203ca4e103a79af3203ba51.tar.gz
Hyprland-9ede0f1c7d54dc6b3203ca4e103a79af3203ba51.zip
Added blur_ignore_opacityv0.1.1beta
-rw-r--r--src/config/ConfigManager.cpp1
-rw-r--r--src/render/OpenGL.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 281267c6..7a20050b 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -41,6 +41,7 @@ void CConfigManager::setDefaultVars() {
configValues["decoration:blur"].intValue = 1;
configValues["decoration:blur_size"].intValue = 8;
configValues["decoration:blur_passes"].intValue = 1;
+ configValues["decoration:blur_ignore_opacity"].intValue = 0;
configValues["decoration:active_opacity"].floatValue = 1;
configValues["decoration:inactive_opacity"].floatValue = 1;
configValues["decoration:fullscreen_opacity"].floatValue = 1;
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 5cf7b3f7..e5a95ec1 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -575,8 +575,8 @@ void CHyprOpenGLImpl::renderTextureWithBlur(const CTexture& tex, wlr_box* pBox,
wlr_box MONITORBOX = {0, 0, m_RenderData.pMonitor->vecPixelSize.x, m_RenderData.pMonitor->vecPixelSize.y};
if (pixman_region32_not_empty(&damage)) {
// render our great blurred FB
- renderTextureInternalWithDamage(POUTFB->m_cTex, &MONITORBOX, a, &damage);
-
+ renderTextureInternalWithDamage(POUTFB->m_cTex, &MONITORBOX, g_pConfigManager->getInt("decoration:blur_ignore_opacity") ? 255.f : a, &damage);
+
// render the window, but clear stencil
glClearStencil(0);
glClear(GL_STENCIL_BUFFER_BIT);