aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-12-25 00:24:57 +0100
committervaxerski <[email protected]>2024-12-25 00:57:55 +0100
commit2a24a61126dcebd2e1f7862e5c21c105900110ac (patch)
tree345516c5f03cdedd4a49cc8cf30fd693d7d56c29 /src/render
parent2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72 (diff)
downloadHyprland-main.tar.gz
Hyprland-main.zip
pass: improve blur region detectionHEADmain
Diffstat (limited to 'src/render')
-rw-r--r--src/render/pass/Pass.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/pass/Pass.cpp b/src/render/pass/Pass.cpp
index b6256c44..69a12293 100644
--- a/src/render/pass/Pass.cpp
+++ b/src/render/pass/Pass.cpp
@@ -73,10 +73,13 @@ void CRenderPass::simplify() {
liveBlurRegion.add(*BB);
}
+ // expand the region: this area needs to be proper to blur it right.
+ liveBlurRegion.expand(oneBlurRadius() * 2.F);
+
if (auto infringement = opaque.copy().intersect(liveBlurRegion); !infringement.empty()) {
// eh, this is not the correct solution, but it will do...
// TODO: is this *easily* fixable?
- opaque.subtract(infringement.expand(oneBlurRadius()));
+ opaque.subtract(infringement);
}
}
newDamage.subtract(opaque);
@@ -117,7 +120,7 @@ CRegion CRenderPass::render(const CRegion& damage_) {
return damage;
}
- if (WILLBLUR) {
+ if (WILLBLUR && !*PDEBUGPASS) {
// combine blur regions into one that will be expanded
CRegion blurRegion;
for (auto& el : m_vPassElements) {