JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied Jukkas prev/next patch with XK_{h,l}
[dwm.git] / tag.c
diff --git a/tag.c b/tag.c
index c42a760..6b7e184 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -216,3 +216,17 @@ view(Arg *arg)
        arrange(NULL);
        drawall();
 }
+
+void
+viewnext(Arg *arg)
+{
+       arg->i = (tsel < TLast-1) ? tsel+1 : 0;
+       view(arg);
+}
+
+void
+viewprev(Arg *arg)
+{
+       arg->i = (tsel > 0) ? tsel-1 : TLast-1;
+       view(arg);
+}