dwm-meillo

diff 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
line diff
     1.1 --- a/tag.c	Fri Feb 09 14:56:19 2007 +0100
     1.2 +++ b/tag.c	Sun Feb 11 11:59:23 2007 +0100
     1.3 @@ -132,3 +132,14 @@
     1.4  		sel->tags[arg->i] = True;
     1.5  	arrange();
     1.6  }
     1.7 +
     1.8 +void
     1.9 +viewnext(Arg *arg) {
    1.10 +  unsigned int i;
    1.11 +  Bool last = seltag[ntags-1];
    1.12 +
    1.13 +  for (i=ntags-1; i>0; --i)
    1.14 +    seltag[i] = seltag[i-1];
    1.15 +  seltag[0] = last;
    1.16 +  arrange();
    1.17 +}