JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix
[dwm.git] / layout.c
index 0dc062f..5bb6e97 100644 (file)
--- a/layout.c
+++ b/layout.c
@@ -218,8 +218,14 @@ 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();
 }
 
 void