diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-01-04 00:25:01 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-01-04 00:25:01 +0100 |
| commit | 60f069d54015fec66e63f1ff7e6ff26ddb349976 (patch) | |
| tree | 52828a0a39ed83fb12d4ae26c0fc6ae8a07fb5dd /src/render/decorations/CHyprGroupBarDecoration.cpp | |
| parent | 2e6e0e9278614406979f63692cdb3a015e54c248 (diff) | |
groupbar: fix missing ellipsize for text
fixes #8938
Diffstat (limited to 'src/render/decorations/CHyprGroupBarDecoration.cpp')
| -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 53d35a64..c6dc5779 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -223,7 +223,7 @@ CTitleTex::CTitleTex(PHLWINDOW pWindow, const Vector2D& bufferSize, const float const CHyprColor COLOR = CHyprColor(*PTEXTCOLOR); const auto FONTFAMILY = *PTITLEFONTFAMILY != STRVAL_EMPTY ? *PTITLEFONTFAMILY : *FALLBACKFONT; - tex = g_pHyprOpenGL->renderText(pWindow->m_szTitle, COLOR, *PTITLEFONTSIZE, false, FONTFAMILY); + tex = g_pHyprOpenGL->renderText(pWindow->m_szTitle, COLOR, *PTITLEFONTSIZE, false, FONTFAMILY, bufferSize.x - 2 /* some padding yk */); if (tex) texSize = tex->m_vSize; |
