diff options
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; |
