mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 12:05:58 +01:00
fix rounding
modified: src/render/decorations/CHyprGroupBarDecoration.cpp Signed-off-by: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com>
This commit is contained in:
parent
54575656ce
commit
db555b9ac9
1 changed files with 3 additions and 3 deletions
|
@ -101,10 +101,10 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a, const Vector2D&
|
|||
return;
|
||||
|
||||
// Bottom left of groupbar
|
||||
Vector2D pos = Vector2D(std::round(m_vLastWindowPos.x - pMonitor->vecPosition.x + offset.x + ROUNDING),
|
||||
std::round(m_vLastWindowPos.y - pMonitor->vecPosition.y + offset.y) +
|
||||
Vector2D pos = Vector2D(m_vLastWindowPos.x - pMonitor->vecPosition.x + offset.x + ROUNDING,
|
||||
std::floor(m_vLastWindowPos.y) - pMonitor->vecPosition.y + offset.y +
|
||||
(m_bOnTop ? (m_bInternalBorder ? 0 : -BORDERSIZE) :
|
||||
std::round(m_vLastWindowSize.y) + m_iBarInternalHeight + BAR_INTERNAL_PADDING + (m_bInternalBorder ? 0 : BORDERSIZE)));
|
||||
std::floor(m_vLastWindowSize.y) + m_iBarInternalHeight + BAR_INTERNAL_PADDING + (m_bInternalBorder ? 0 : BORDERSIZE)));
|
||||
|
||||
wlr_box barBox = {pos.x, pos.y - m_iBarHeight + (m_bOnTop ? -BAR_INTERNAL_PADDING : 0), BARW, m_iBarHeight};
|
||||
wlr_box gradBox = {pos.x, pos.y - m_iBarHeight + (m_bOnTop ? -2 * BAR_INTERNAL_PADDING : -BAR_INTERNAL_PADDING) - m_iGradientHeight, BARW, m_iGradientHeight};
|
||||
|
|
Loading…
Reference in a new issue