comparison tag.c @ 1:ba504f41828f

add prev/next control to view_tags() and setlayouts()
author paulo@localhost
date Mon, 23 Mar 2009 00:14:48 -0700
parents 7024076fa948
children e749c30135e9
comparison
equal deleted inserted replaced
0:1f168a895d9d 1:61886b0cd543
162 Arg a; 162 Arg a;
163 163
164 a.i = lastview; 164 a.i = lastview;
165 view(&a); 165 view(&a);
166 } 166 }
167
168 void
169 next_view(Arg *arg) {
170 int i;
171 Arg a;
172
173 a.i = 0;
174 setlayout(&a); /* back to default layout */
175
176 for(i = 0; i < ntags; i++) {
177 if (seltag[i] == True) {
178 seltag[i] = False;
179 seltag[(i + arg->i) >= 0 ? (i + arg->i) % ntags : ntags - 1] = True;
180 break;
181 }
182 }
183 lt->arrange();
184 }