diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-03-26 11:44:38 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-03-26 11:44:38 +0000 |
| commit | c2ef8fcc0014cfed4e465b184572e6acad9f750f (patch) | |
| tree | 6460f1659dda363236656a74917f2180bfff5c97 /src/render/decorations/CHyprGroupBarDecoration.cpp | |
| parent | 3fc3521a97eba0fa67da80f17ae7872b1073f08d (diff) | |
groupbar: round boxes
Diffstat (limited to 'src/render/decorations/CHyprGroupBarDecoration.cpp')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index 9e6db6ac..905a72c7 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -142,7 +142,7 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) { ASSIGNEDBOX.y + ASSIGNEDBOX.h - floor(yoff) - *PINDICATORHEIGHT - *POUTERGAP - pMonitor->vecPosition.y + m_pWindow->m_vFloatingOffset.y, m_fBarWidth, *PINDICATORHEIGHT}; - rect.scale(pMonitor->scale); + rect.scale(pMonitor->scale).round(); const bool GROUPLOCKED = m_pWindow->getGroupHead()->m_sGroupData.locked || g_pKeybindManager->m_bGroupsLocked; const auto* const PCOLACTIVE = GROUPLOCKED ? GROUPCOLACTIVELOCKED : GROUPCOLACTIVE; @@ -573,5 +573,5 @@ CBox CHyprGroupBarDecoration::assignedBoxGlobal() { if (PWORKSPACE && !m_pWindow->m_bPinned) box.translate(PWORKSPACE->m_vRenderOffset->value()); - return box; + return box.round(); } |
