Mercurial > dwm-meillo
comparison tag.c @ 745:08b89915c109
added jukka's viewnext code
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Feb 2007 11:59:23 +0100 |
parents | 39b941868ce3 |
children | f0e6c8860014 |
comparison
equal
deleted
inserted
replaced
744:628c5bac7f3b | 745:08b89915c109 |
---|---|
130 for(i = 0; i < ntags && !sel->tags[i]; i++); | 130 for(i = 0; i < ntags && !sel->tags[i]; i++); |
131 if(i == ntags) | 131 if(i == ntags) |
132 sel->tags[arg->i] = True; | 132 sel->tags[arg->i] = True; |
133 arrange(); | 133 arrange(); |
134 } | 134 } |
135 | |
136 void | |
137 viewnext(Arg *arg) { | |
138 unsigned int i; | |
139 Bool last = seltag[ntags-1]; | |
140 | |
141 for (i=ntags-1; i>0; --i) | |
142 seltag[i] = seltag[i-1]; | |
143 seltag[0] = last; | |
144 arrange(); | |
145 } |