diff options
| -rw-r--r-- | layout.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -218,7 +218,12 @@ setlayout(const char *arg) { | |||
| 218 | 218 | ||
| 219 | void | 219 | void |
| 220 | togglebar(const char *arg) { | 220 | togglebar(const char *arg) { |
| 221 | bpos = (bpos == BarOff) ? BARPOS : BarOff; | 221 | if(bpos == BarOff) { |
| 222 | if((bpos = BARPOS) == BarOff) | ||
| 223 | bpos = BarTop; | ||
| 224 | } | ||
| 225 | else | ||
| 226 | bpos = BarOff; | ||
| 222 | updatebarpos(); | 227 | updatebarpos(); |
| 223 | lt->arrange(); | 228 | lt->arrange(); |
| 224 | } | 229 | } |
