X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=client.c;h=0251445274db7d6457f2382b931df3bccc0a41f1;hp=eaf4a105226f89c1b3ded3bc19de052023ec5fcc;hb=f8415019d4edc1cd4f310adb256e6656e85bfe75;hpb=238dd5d2b15b8bdc0f05d5be7f86a1ca03d2920b 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) { } } -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 @@ manage(Window w, XWindowAttributes *wa) { 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;