renderer/groupbar: fix a group indicator rounding bug (#13975)

single tab edge case handled
This commit is contained in:
Emre Bener 2026-04-04 19:16:37 +01:00 committed by GitHub
parent af4e196583
commit 442ccb069d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {