summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorEmre Bener <33965796+Emrebener@users.noreply.github.com>2026-04-04 19:16:37 +0100
committerGitHub <noreply@github.com>2026-04-04 19:16:37 +0100
commit442ccb069d849e5ea69b095821dbad89d0b5ee26 (patch)
tree59ee3eef06836a9b03884b5ea40dae48430bb897 /src/render
parentaf4e196583e11a627485f5fb6220b7eb01e0e7a4 (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.cpp4
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) {