i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit f572758e95aaecbf7e7fbadff0275c7ceeb78a71
parent 3e15d8af8e164642097eeb42bbfa3078605fea5c
Author: Raymond Li <hi@raymond.li>
Date:   Mon, 15 Feb 2021 01:02:58 -0500

Set MIN_BAR_COUNT to 2 and use it if bar_count is not set

Diffstat:
Mi3lock.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -269,7 +269,7 @@ bool redraw_thread = false;
 #define BAR_REVERSED 1
 #define BAR_BIDIRECTIONAL 2
 #define MAX_BAR_COUNT 65535
-#define MIN_BAR_COUNT 1
+#define MIN_BAR_COUNT 2
 
 bool bar_enabled = false;
 double *bar_heights = NULL;
@@ -2298,7 +2298,7 @@ int main(int argc, char *argv[]) {
                     ++bar_count;
                 }
             } else {
-                bar_count = 10;
+                bar_count = MIN_BAR_COUNT;
             }
         } else if (bar_width != 0) {
             errx(EXIT_FAILURE, "bar-width and bar-count cannot be used at the same time");