aewl

diff tag.c @ 276:9a0a351dd910

pplied Sanders appendtag patch
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 15:31:58 +0200
parents be40a56df248
children 1e7fa455e3b4
line diff
     1.1 --- a/tag.c	Mon Aug 14 15:11:02 2006 +0200
     1.2 +++ b/tag.c	Mon Aug 14 15:31:58 2006 +0200
     1.3 @@ -37,11 +37,15 @@
     1.4  void
     1.5  appendtag(Arg *arg)
     1.6  {
     1.7 -	if(!sel)
     1.8 +	Client *c = sel;
     1.9 +
    1.10 +	if(!c)
    1.11  		return;
    1.12  
    1.13 -	sel->tags[arg->i] = True;
    1.14 +	c->tags[arg->i] = True;
    1.15  	arrange(NULL);
    1.16 +	focus(c);
    1.17 +	restack();
    1.18  }
    1.19  
    1.20  void