commit cd7fe5e00b11f50fea0b9d110fa343d2bf8760dc
parent 1aa7edc7a74d9e0bd003ec6362c3a58b92fd65b4
Author: Raymond Li <hi@raymond.li>
Date: Mon, 15 Feb 2021 01:15:34 -0500
Revert "Set MIN_BAR_COUNT to 2 and use it if bar_count is not set"
This reverts commit f572758e95aaecbf7e7fbadff0275c7ceeb78a71.
Diffstat:
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 2
+#define MIN_BAR_COUNT 1
bool bar_enabled = false;
double *bar_heights = NULL;
@@ -2298,7 +2298,7 @@ int main(int argc, char *argv[]) {
++bar_count;
}
} else {
- bar_count = MIN_BAR_COUNT;
+ bar_count = 10;
}
} else if (bar_width != 0) {
errx(EXIT_FAILURE, "bar-width and bar-count cannot be used at the same time");