dwm-meillo

diff client.c @ 431:a230e4432bb7

moved transient_for tag inheritance to settags
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 09:21:17 +0200
parents 1e8aba00964e
children 42388f634de0
line diff
     1.1 --- a/client.c	Wed Sep 06 09:13:31 2006 +0200
     1.2 +++ b/client.c	Wed Sep 06 09:21:17 2006 +0200
     1.3 @@ -199,7 +199,7 @@
     1.4  manage(Window w, XWindowAttributes *wa)
     1.5  {
     1.6  	unsigned int i;
     1.7 -	Client *c, *tc;
     1.8 +	Client *c;
     1.9  	Window trans;
    1.10  	XSetWindowAttributes twa;
    1.11  
    1.12 @@ -238,11 +238,7 @@
    1.13  			CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa);
    1.14  
    1.15  	grabbuttons(c, False);
    1.16 -	if((tc = getclient(trans))) /* inherit tags */
    1.17 -		for(i = 0; i < ntags; i++)
    1.18 -			c->tags[i] = tc->tags[i];
    1.19 -	else
    1.20 -		settags(c);
    1.21 +	settags(c, getclient(trans));
    1.22  	if(!c->isfloat)
    1.23  		c->isfloat = trans
    1.24  			|| (c->maxw && c->minw &&