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 wrap: on
line diff
--- a/client.c	Wed Sep 06 09:13:31 2006 +0200
+++ b/client.c	Wed Sep 06 09:21:17 2006 +0200
@@ -199,7 +199,7 @@
 manage(Window w, XWindowAttributes *wa)
 {
 	unsigned int i;
-	Client *c, *tc;
+	Client *c;
 	Window trans;
 	XSetWindowAttributes twa;
 
@@ -238,11 +238,7 @@
 			CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa);
 
 	grabbuttons(c, False);
-	if((tc = getclient(trans))) /* inherit tags */
-		for(i = 0; i < ntags; i++)
-			c->tags[i] = tc->tags[i];
-	else
-		settags(c);
+	settags(c, getclient(trans));
 	if(!c->isfloat)
 		c->isfloat = trans
 			|| (c->maxw && c->minw &&