summaryrefslogtreecommitdiffstats
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
parentapplied Sanders patches (diff)
downloaddwm-1b63f832c528958042d72fddc318af5aefdcb68a.tar.gz
dwm-1b63f832c528958042d72fddc318af5aefdcb68a.zip
applied Jukkas prev/next patch with XK_{h,l}
Diffstat (limited to '')
-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)
216 arrange(NULL); 216 arrange(NULL);
217 drawall(); 217 drawall();
218} 218}
219
220void
221viewnext(Arg *arg)
222{
223 arg->i = (tsel < TLast-1) ? tsel+1 : 0;
224 view(arg);
225}
226
227void
228viewprev(Arg *arg)
229{
230 arg->i = (tsel > 0) ? tsel-1 : TLast-1;
231 view(arg);
232}