summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 15:17:31 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 15:17:31 +0100
commitf8415019d4edc1cd4f310adb256e6656e85bfe75 (patch)
tree2813e15f6dbd4a3c1326a3d2c08ab2bcea3c61af /client.c
parentrenamed view.c into screen.c (diff)
downloaddwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.tar.gz
dwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.zip
draw.c is useless (belongs to main.c now)
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;