comparison tag.c @ 3:faa4cb9d7bd6

add TASKBAR and CLICK_TO_FOCUS
author paulo@localhost
date Thu, 23 Apr 2009 02:43:13 -0700
parents 7024076fa948
children
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 }