look like autohide need minimal height

git-svn-id: http://tint2.googlecode.com/svn/trunk@432 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-04-18 20:31:20 +00:00
parent 64530181d9
commit 85c90699c8
2 changed files with 10 additions and 2 deletions

View 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);