diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 99e3e07..8fff8d0 100644 --- a/src/config.c +++ b/src/config.c @@ -7,6 +7,8 @@ #include "i3status.h" +int highest_order = 0; + /* * Reads the configuration from the given file * @@ -111,9 +113,8 @@ int load_configuration(const char *configfile) { } OPT("order") { - #define SET_ORDER(opt, idx) { if (strcasecmp(token, opt) == 0) order[idx] = c++; } + #define SET_ORDER(opt, idx) { if (strcasecmp(token, opt) == 0) order[idx] = highest_order++; } char *walk, *token; - int c = 0; walk = token = dest_value; while (*walk != '\0') { while ((*walk != ',') && (*walk != '\0')) |