aewl

diff client.c @ 320:30b447bad2e5

windows which have set transient_for hint inherit the transient_for window tags now
author arg@localhost.10kloc.org
date Mon, 21 Aug 2006 17:35:37 +0200
parents 94d2d7658673
children 96d09fd98e89
line diff
     1.1 --- a/client.c	Mon Aug 21 17:41:09 2006 +0200
     1.2 +++ b/client.c	Mon Aug 21 17:35:37 2006 +0200
     1.3 @@ -214,6 +214,7 @@
     1.4  void
     1.5  manage(Window w, XWindowAttributes *wa)
     1.6  {
     1.7 +	unsigned int i;
     1.8  	Client *c, *tc;
     1.9  	Window trans;
    1.10  	XSetWindowAttributes twa;
    1.11 @@ -261,7 +262,11 @@
    1.12  	grabbutton(c, Button2, MODKEY);
    1.13  	grabbutton(c, Button3, MODKEY);
    1.14  
    1.15 -	settags(c);
    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  	if(!c->isfloat)
    1.22  		c->isfloat = trans
    1.23  			|| (c->maxw && c->minw &&