From 5ad2828c579937afc3dc6da9987587e0eb2473dc Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 15 May 2007 13:49:43 +0200 Subject: using BarTop as fallback if BARPOS is set to BarOff as default for toggling --- layout.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3-70-g09d2