Skip to content

Commit

Permalink
hyprbars: fixup size clamp condition
Browse files Browse the repository at this point in the history
ref #101
  • Loading branch information
vaxerski committed Mar 23, 2024
1 parent adec334 commit 81460bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyprbars/barDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81460bd

Please sign in to comment.