JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
simplification
[dwm.git] / layout.c
index 26e9de6..bc5ca1c 100644 (file)
--- a/layout.c
+++ b/layout.c
@@ -218,7 +218,10 @@ setlayout(const char *arg) {
 
 void
 togglebar(const char *arg) {
-       bpos = (bpos == BarOff) ? BARPOS : BarOff;
+       if(bpos == BarOff)
+               bpos = (BARPOS == BarOff) ? BarTop : BARPOS;
+       else
+               bpos = BarOff;
        updatebarpos();
        lt->arrange();
 }