diff options
| author | Emre Bener <33965796+Emrebener@users.noreply.github.com> | 2026-04-04 19:16:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-04 19:16:37 +0100 |
| commit | 442ccb069d849e5ea69b095821dbad89d0b5ee26 (patch) | |
| tree | 59ee3eef06836a9b03884b5ea40dae48430bb897 /src/render | |
| parent | af4e196583e11a627485f5fb6220b7eb01e0e7a4 (diff) | |
renderer/groupbar: fix a group indicator rounding bug (#13975)
single tab edge case handled
Diffstat (limited to 'src/render')
| -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 09545ca3..b8f6d814 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -172,7 +172,7 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) { if (*PROUNDING) { rectdata.round = *PROUNDING; rectdata.roundingPower = *PROUNDINGPOWER; - if (*PROUNDONLYEDGES) { + if (*PROUNDONLYEDGES && barsToDraw > 1) { rectdata.round = 0; const double offset = *PROUNDING * 2; if (i == 0) { @@ -207,7 +207,7 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) { if (*PGRADIENTROUNDING) { data.round = *PGRADIENTROUNDING; data.roundingPower = *PGRADIENTROUNDINGPOWER; - if (*PGRADIENTROUNDINGONLYEDGES) { + if (*PGRADIENTROUNDINGONLYEDGES && barsToDraw > 1) { data.round = 0; const double offset = *PGRADIENTROUNDING * 2; if (i == 0) { |
