aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/layout.c b/layout.c
index 26e9de6..5bb6e97 100644
--- a/layout.c
+++ b/layout.c
@@ -218,7 +218,12 @@ setlayout(const char *arg) {
void
togglebar(const char *arg) {
- bpos = (bpos == BarOff) ? BARPOS : BarOff;
+ if(bpos == BarOff) {
+ if((bpos = BARPOS) == BarOff)
+ bpos = BarTop;
+ }
+ else
+ bpos = BarOff;
updatebarpos();
lt->arrange();
}