equal
deleted
inserted
replaced
251 XSetWindowBorder(dpy, w, dc.norm[ColBorder]); |
251 XSetWindowBorder(dpy, w, dc.norm[ColBorder]); |
252 configure(c); /* propagates border_width, if size doesn't change */ |
252 configure(c); /* propagates border_width, if size doesn't change */ |
253 updatetitle(c); |
253 updatetitle(c); |
254 for(t = clients; t && t->win != trans; t = t->next); |
254 for(t = clients; t && t->win != trans; t = t->next); |
255 settags(c, t); |
255 settags(c, t); |
256 if(!c->swimming) |
256 if(!c->versatile) |
257 c->swimming = (t != NULL) || c->isfixed; |
257 c->versatile = (t != NULL) || c->isfixed; |
258 attach(c); |
258 attach(c); |
259 attachstack(c); |
259 attachstack(c); |
260 c->isbanned = True; |
260 c->isbanned = True; |
261 XMoveWindow(dpy, w, c->x + 2 * sw, c->y); |
261 XMoveWindow(dpy, w, c->x + 2 * sw, c->y); |
262 XMapWindow(dpy, w); |
262 XMapWindow(dpy, w); |
266 lt->arrange(); |
266 lt->arrange(); |
267 } |
267 } |
268 |
268 |
269 Client * |
269 Client * |
270 nexttiled(Client *c) { |
270 nexttiled(Client *c) { |
271 for(; c && (c->swimming || !isvisible(c)); c = c->next); |
271 for(; c && (c->versatile || !isvisible(c)); c = c->next); |
272 return c; |
272 return c; |
273 } |
273 } |
274 |
274 |
275 void |
275 void |
276 resize(Client *c, int x, int y, int w, int h, Bool sizehints) { |
276 resize(Client *c, int x, int y, int w, int h, Bool sizehints) { |
438 unsigned int n; |
438 unsigned int n; |
439 Client *c; |
439 Client *c; |
440 |
440 |
441 if(!sel) |
441 if(!sel) |
442 return; |
442 return; |
443 if(sel->swimming || (lt->arrange == swim)) { |
443 if(sel->versatile || (lt->arrange == versatile)) { |
444 togglemax(sel); |
444 togglemax(sel); |
445 return; |
445 return; |
446 } |
446 } |
447 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
447 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
448 n++; |
448 n++; |