author | Anselm R. Garbe <arg@suckless.org> |
Tue, 15 May 2007 14:06:18 +0200 | |
changeset 887 | 44755dcf1ad4 |
parent 886 | b9c89fd54df8 |
child 888 | 8b7337534209 |
--- a/layout.c Tue May 15 13:58:29 2007 +0200 +++ b/layout.c Tue May 15 14:06:18 2007 +0200 @@ -218,10 +218,8 @@ void togglebar(const char *arg) { - if(bpos == BarOff) { - if((bpos = BARPOS) == BarOff) - bpos = BarTop; - } + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; else bpos = BarOff; updatebarpos();