mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-24 19:25:59 +01:00
hyprbars: gen text tex if null
This commit is contained in:
parent
0053442040
commit
63450e70f2
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ void CHyprBar::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {
|
||||||
g_pHyprOpenGL->renderRect(&titleBarBox, color, *PROUNDING);
|
g_pHyprOpenGL->renderRect(&titleBarBox, color, *PROUNDING);
|
||||||
|
|
||||||
// render title
|
// render title
|
||||||
if (m_szLastTitle != m_pWindow->m_szTitle || m_bWindowSizeChanged) {
|
if (m_szLastTitle != m_pWindow->m_szTitle || m_bWindowSizeChanged || m_tTextTex.m_iTexID == 0) {
|
||||||
m_szLastTitle = m_pWindow->m_szTitle;
|
m_szLastTitle = m_pWindow->m_szTitle;
|
||||||
renderBarTitle(BARBUF);
|
renderBarTitle(BARBUF);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue