using BarTop as fallback if BARPOS is set to BarOff as default for toggling
5ad2828c
1 file(s) · +6 −1
| 218 | 218 | ||
| 219 | 219 | void |
|
| 220 | 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 | 227 | updatebarpos(); |
|
| 223 | 228 | lt->arrange(); |
|
| 224 | 229 | } |