From 859b9cd371b4e1bf1043cedc8ab6c514e13ab358 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 22 Dec 2024 17:05:59 +0000 Subject: [PATCH] hyprbars: expand the bar pass bb a bit occlusion is a bit aggressive, we need to fix that --- hyprbars/BarPassElement.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyprbars/BarPassElement.cpp b/hyprbars/BarPassElement.cpp index 64ebabd..5191af5 100644 --- a/hyprbars/BarPassElement.cpp +++ b/hyprbars/BarPassElement.cpp @@ -23,7 +23,8 @@ bool CBarPassElement::needsLiveBlur() { } std::optional 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() {