equal
deleted
inserted
replaced
198 focus(c); |
198 focus(c); |
199 restack(); |
199 restack(); |
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) |
216 return; |
206 return; |
217 if(isprotodel(sel)) |
207 if(isprotodel(sel)) |
257 wc.border_width = c->border; |
247 wc.border_width = c->border; |
258 XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); |
248 XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); |
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; |
266 attach(c); |
256 attach(c); |
267 attachstack(c); |
257 attachstack(c); |