hyprbars: expand the bar pass bb a bit

occlusion is a bit aggressive, we need to fix that
This commit is contained in:
Vaxry 2024-12-22 17:05:59 +00:00
parent a98c16ded5
commit 859b9cd371

View file

@ -23,7 +23,8 @@ bool CBarPassElement::needsLiveBlur() {
}
std::optional<CBox> CBarPassElement::boundingBox() {
return data.deco->assignedBoxGlobal().translate(-g_pHyprOpenGL->m_RenderData.pMonitor->vecPosition);
// Temporary fix: expand the bar bb a bit, otherwise occlusion gets too aggressive.
return data.deco->assignedBoxGlobal().translate(-g_pHyprOpenGL->m_RenderData.pMonitor->vecPosition).expand(10);
}
bool CBarPassElement::needsPrecomputeBlur() {