summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/client.c b/client.c
index eaf4a10..0251445 100644
--- a/client.c
+++ b/client.c
@@ -200,16 +200,6 @@ focusprev(Arg *arg) {
200 } 200 }
201} 201}
202 202
203Client *
204getclient(Window w) {
205 Client *c;
206
207 for(c = clients; c; c = c->next)
208 if(c->win == w)
209 return c;
210 return NULL;
211}
212
213void 203void
214killclient(Arg *arg) { 204killclient(Arg *arg) {
215 if(!sel) 205 if(!sel)
@@ -259,7 +249,7 @@ manage(Window w, XWindowAttributes *wa) {
259 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); 249 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
260 configure(c); /* propagates border_width, if size doesn't change */ 250 configure(c); /* propagates border_width, if size doesn't change */
261 updatetitle(c); 251 updatetitle(c);
262 t = getclient(trans); 252 for(t = clients; t && t->win != c->win; t = t->next);
263 settags(c, t); 253 settags(c, t);
264 if(!c->isfloat) 254 if(!c->isfloat)
265 c->isfloat = (t != 0) || c->isfixed; 255 c->isfloat = (t != 0) || c->isfixed;