mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 18:18:03 +02:00
renderer/groupbar: fix a group indicator rounding bug (#13975)
single tab edge case handled
This commit is contained in:
parent
af4e196583
commit
442ccb069d
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue