X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fconfig.c;h=61178d11918237301720c7f0843579103923f80f;hb=fa81324a2418b1288c0fc4822014fb55abefd10a;hp=4ea8d84376001b0385c1796a3469489182313cd5;hpb=e050df33d29de6f7890b7111f6ea871aa5247743;p=chaz%2Ftint2 diff --git a/src/config.c b/src/config.c index 4ea8d84..61178d1 100644 --- a/src/config.c +++ b/src/config.c @@ -590,8 +590,13 @@ void add_entry (char *key, char *value) else panel_strut_policy = STRUT_MINIMUM; } - else if (strcmp(key, "autohide_height") == 0) + else if (strcmp(key, "autohide_height") == 0) { panel_autohide_height = atoi(value); + if (panel_autohide_height == 0) { + // autohide need height > 0 + panel_autohide_height = 1; + } + } else fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);