client.c
changeset 777 469dc170f833
parent 776 be103ae46dbc
child 779 e4382ee39888
--- a/client.c	Mon Feb 19 15:05:29 2007 +0100
+++ b/client.c	Mon Feb 19 15:17:31 2007 +0100
@@ -200,16 +200,6 @@
 	}
 }
 
-Client *
-getclient(Window w) {
-	Client *c;
-
-	for(c = clients; c; c = c->next)
-		if(c->win == w)
-			return c;
-	return NULL;
-}
-
 void
 killclient(Arg *arg) {
 	if(!sel)
@@ -259,7 +249,7 @@
 	XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
 	configure(c); /* propagates border_width, if size doesn't change */
 	updatetitle(c);
-	t = getclient(trans);
+	for(t = clients; t && t->win != c->win; t = t->next);
 	settags(c, t);
 	if(!c->isfloat)
 		c->isfloat = (t != 0) || c->isfixed;