]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
look like autohide need minimal height
[chaz/tint2] / src / config.c
index 4ea8d84376001b0385c1796a3469489182313cd5..61178d11918237301720c7f0843579103923f80f 100644 (file)
@@ -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);
This page took 0.021875 seconds and 4 git commands to generate.