JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
no that change breaks fullscreen apps
[dwm.git] / layout.c
index 0dc062f..bc5ca1c 100644 (file)
--- a/layout.c
+++ b/layout.c
@@ -218,8 +218,12 @@ 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();
 }
 
 void