From c3b893ebc9a407a9633b8e8642a65a0d587a6ab8 Mon Sep 17 00:00:00 2001 From: Pandora Date: Fri, 8 Dec 2017 23:25:20 -0500 Subject: [PATCH] actually fix this bug --- unlock_indicator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unlock_indicator.c b/unlock_indicator.c index 8ff28a6..f39db9f 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -924,7 +924,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { break; } - if (cur_bar_height >= 0 && ((bar_bidirectional && ((cur_bar_height * 2) < bar_base_height)) + if (cur_bar_height != 0 && ((bar_bidirectional && ((cur_bar_height * 2) < bar_base_height)) || (!bar_bidirectional && (cur_bar_height < bar_base_height)))) { cairo_rectangle(bar_ctx, back_x, back_y, back_width, back_height); cairo_fill(bar_ctx);