1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2025-02-24 16:06:26 -05:00

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

This reverts commit f572758e95.
This commit is contained in:
Raymond Li 2021-02-15 01:15:34 -05:00
parent 1aa7edc7a7
commit cd7fe5e00b
No known key found for this signature in database
GPG key ID: A014EA89B62BBB1B

View file

@ -269,7 +269,7 @@ bool redraw_thread = false;
#define BAR_REVERSED 1 #define BAR_REVERSED 1
#define BAR_BIDIRECTIONAL 2 #define BAR_BIDIRECTIONAL 2
#define MAX_BAR_COUNT 65535 #define MAX_BAR_COUNT 65535
#define MIN_BAR_COUNT 2 #define MIN_BAR_COUNT 1
bool bar_enabled = false; bool bar_enabled = false;
double *bar_heights = NULL; double *bar_heights = NULL;
@ -2298,7 +2298,7 @@ int main(int argc, char *argv[]) {
++bar_count; ++bar_count;
} }
} else { } else {
bar_count = MIN_BAR_COUNT; bar_count = 10;
} }
} else if (bar_width != 0) { } else if (bar_width != 0) {
errx(EXIT_FAILURE, "bar-width and bar-count cannot be used at the same time"); errx(EXIT_FAILURE, "bar-width and bar-count cannot be used at the same time");