hyprbars: fixup size clamp condition

ref #101
This commit is contained in:
Vaxry 2024-03-23 21:23:21 +00:00
parent adec334acf
commit 81460bd869

View file

@ -417,7 +417,7 @@ void CHyprBar::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {
titleBarBox.translate(offset).scale(pMonitor->scale).round();
if (titleBarBox.w < 1 || titleBarBox.h < 0)
if (titleBarBox.w < 1 || titleBarBox.h < 1)
return;
g_pHyprOpenGL->scissor(&titleBarBox);