dwm-meillo

diff tag.c @ 287:5e5e5392c7cb

applied sanders tag()/toggletag() fixes
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 17:50:48 +0200
parents e864d658eb02
children 6562340b9ffc
line diff
     1.1 --- a/tag.c	Mon Aug 14 17:48:54 2006 +0200
     1.2 +++ b/tag.c	Mon Aug 14 17:50:48 2006 +0200
     1.3 @@ -269,7 +269,8 @@
     1.4  		sel->tags[i] = False;
     1.5  	sel->tags[arg->i] = True;
     1.6  	settitle(sel);
     1.7 -	arrange(NULL);
     1.8 +	if(!isvisible(sel))
     1.9 +		arrange(NULL);
    1.10  }
    1.11  
    1.12  void
    1.13 @@ -292,6 +293,8 @@
    1.14  	if(i == ntags)
    1.15  		sel->tags[arg->i] = True;
    1.16  	settitle(sel);
    1.17 +	if(!isvisible(sel))
    1.18 +		arrange(NULL);
    1.19  }
    1.20  
    1.21