added viewall to mainstream (only Ross Mohns version, not the toggle)
[dwm.git] / view.c
diff --git a/view.c b/view.c
index aa0a23a..bb0647a 100644 (file)
--- a/view.c
+++ b/view.c
@@ -273,6 +273,16 @@ view(Arg *arg)
        arrange(NULL);
 }
 
+void
+viewall(Arg *arg)
+{
+       unsigned int i;
+
+       for(i = 0; i < ntags; i++)
+               seltag[i] = True;
+       arrange(NULL);
+}
+
 void
 zoom(Arg *arg)
 {