diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 15:17:31 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 15:17:31 +0100 |
| commit | f8415019d4edc1cd4f310adb256e6656e85bfe75 (patch) | |
| tree | 2813e15f6dbd4a3c1326a3d2c08ab2bcea3c61af /client.c | |
| parent | renamed view.c into screen.c (diff) | |
| download | dwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.tar.gz dwm-f8415019d4edc1cd4f310adb256e6656e85bfe75.zip | |
draw.c is useless (belongs to main.c now)
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 12 |
1 files changed, 1 insertions, 11 deletions
| @@ -200,16 +200,6 @@ focusprev(Arg *arg) { | |||
| 200 | } | 200 | } |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | Client * | ||
| 204 | getclient(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 | |||
| 213 | void | 203 | void |
| 214 | killclient(Arg *arg) { | 204 | killclient(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; |
