i3bar: also use the position option when in 'hide' mode

This commit is contained in:
Michael Stapelberg
2011-10-21 19:59:25 +01:00
parent 0f2642a9c9
commit a3b7ba15ed
3 changed files with 13 additions and 11 deletions

View File

@ -63,7 +63,7 @@ static int config_string_cb(void *params_, const unsigned char *val, unsigned in
if (!strcmp(cur_key, "position")) {
DLOG("position = %.*s\n", len, val);
config.dockpos = (len == 3 && !strncmp((const char*)val, "top", strlen("top")) ? DOCKPOS_TOP : DOCKPOS_BOT);
config.position = (len == 3 && !strncmp((const char*)val, "top", strlen("top")) ? POS_TOP : POS_BOT);
return 1;
}