bugfix: reset correctly default bar position on toggle

Thanks Daniel Brinkers
This commit is contained in:
Julien Danjou 2007-10-08 13:07:01 +02:00
parent 46cde2d95c
commit 158b91adaf
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ uicb_togglebar(Display *disp,
const char *arg __attribute__ ((unused)))
{
if(awesomeconf->statusbar.position == BarOff)
awesomeconf->statusbar.position = (awesomeconf->statusbar.position == BarOff) ? BarTop : awesomeconf->statusbar_default_position;
awesomeconf->statusbar.position = (awesomeconf->statusbar_default_position == BarOff) ? BarTop : awesomeconf->statusbar_default_position;
else
awesomeconf->statusbar.position = BarOff;
updatebarpos(disp, awesomeconf->statusbar);