X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fconfig.c;h=6233eccc36d8f48d33b903b856265edc01066d2a;hb=f8f6e7f277a6e09fb4a9fa7db532867d51d229be;hp=4ea8d84376001b0385c1796a3469489182313cd5;hpb=e050df33d29de6f7890b7111f6ea871aa5247743;p=chaz%2Ftint2 diff --git a/src/config.c b/src/config.c index 4ea8d84..6233ecc 100644 --- a/src/config.c +++ b/src/config.c @@ -155,9 +155,7 @@ int get_task_status(char* status) int config_get_monitor(char* monitor) { - if (strcmp(monitor, "all") == 0) - return -1; - else { + if (strcmp(monitor, "all") != 0) { char* endptr; int ret_int = strtol(monitor, &endptr, 10); if (*endptr == 0) @@ -166,6 +164,9 @@ int config_get_monitor(char* monitor) // monitor specified by name, not by index int i, j; for (i=0; i 0 + panel_autohide_height = 1; + } + } else fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);