Skip to content

Commit

Permalink
hyprbars: expand the bar pass bb a bit
Browse files Browse the repository at this point in the history
occlusion is a bit aggressive, we need to fix that
  • Loading branch information
vaxerski committed Dec 22, 2024
1 parent a98c16d commit 859b9cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hyprbars/BarPassElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 859b9cd

Please sign in to comment.