aboutsummaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-01 12:39:14 +0200
committerarg@10ksloc.org <unknown>2006-08-01 12:39:14 +0200
commit1b63f832c528958042d72fddc318af5aefdcb68a (patch)
treea720f6e436185043c9b717d8a53c5989da4272a4 /tag.c
parent7b5638f61d5c8b5a76bc3f7a5962cb7490da3b6b (diff)
downloaddwm-1b63f832c528958042d72fddc318af5aefdcb68a.tar.gz
applied Jukkas prev/next patch with XK_{h,l}
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index c42a760..6b7e184 100644
--- 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);
+}