JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix
[dwm.git] / layout.c
index 04835a8..5bb6e97 100644 (file)
--- a/layout.c
+++ b/layout.c
@@ -217,6 +217,18 @@ setlayout(const char *arg) {
 }
 
 void
+togglebar(const char *arg) {
+       if(bpos == BarOff) {
+               if((bpos = BARPOS) == BarOff)
+                       bpos = BarTop;
+       }
+       else
+               bpos = BarOff;
+       updatebarpos();
+       lt->arrange();
+}
+
+void
 togglemax(const char *arg) {
        XEvent ev;