diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2023-11-19 12:29:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 12:29:26 +0000 |
| commit | 7e0c90b92c1229b3c453d2fbd1609affa9631ce2 (patch) | |
| tree | c8c7817fef05a03615e1a4418bc5c3e59670994f /src/render | |
| parent | add23a9ba26c6363c7180ed0b23394d9f1328be2 (diff) | |
groupbar: fix text pos with verical offset (#3893)
modified: src/render/decorations/CHyprGroupBarDecoration.cpp
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index acf74cef..7d2c84ee 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -135,7 +135,7 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& if (*PGRADIENTS) g_pHyprOpenGL->renderTexture((m_dwGroupMembers[i] == g_pCompositor->m_pLastWindow ? m_tGradientActive : m_tGradientInactive), &rect, 1.0); - rect.y = (ASSIGNEDBOX.y + ASSIGNEDBOX.h / 2.0 - (*PTITLEFONTSIZE + 2 * BAR_TEXT_PAD) / 2.0) * pMonitor->scale; + rect.y += (ASSIGNEDBOX.h / 2.0 - (*PTITLEFONTSIZE + 2 * BAR_TEXT_PAD) / 2.0) * pMonitor->scale; rect.height = (*PTITLEFONTSIZE + 2 * BAR_TEXT_PAD) * pMonitor->scale; g_pHyprOpenGL->renderTexture(pTitleTex->tex, &rect, 1.f); |
