equal
deleted
inserted
replaced
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); |
263 setclientstate(c, NormalState); |
263 setclientstate(c, NormalState); |
264 if(isvisible(c)) |
264 if(isvisible(c)) |
265 focus(c); |
265 focus(c); |
266 arrange(); |
266 lt->arrange(); |
267 } |
267 } |
268 |
268 |
269 Client * |
269 Client * |
270 nexttiled(Client *c) { |
270 nexttiled(Client *c) { |
271 for(; c && (c->isfloat || !isvisible(c)); c = c->next); |
271 for(; c && (c->isfloat || !isvisible(c)); c = c->next); |
428 free(c->tags); |
428 free(c->tags); |
429 free(c); |
429 free(c); |
430 XSync(dpy, False); |
430 XSync(dpy, False); |
431 XSetErrorHandler(xerror); |
431 XSetErrorHandler(xerror); |
432 XUngrabServer(dpy); |
432 XUngrabServer(dpy); |
433 arrange(); |
433 lt->arrange(); |
434 } |
434 } |
435 |
435 |
436 void |
436 void |
437 zoom(Arg *arg) { |
437 zoom(Arg *arg) { |
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->isfloat || (arrange == dofloat)) { |
443 if(sel->isfloat || (lt->arrange == dofloat)) { |
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++; |
450 if(!(c = nexttiled(c->next))) |
450 if(!(c = nexttiled(c->next))) |
451 return; |
451 return; |
452 detach(c); |
452 detach(c); |
453 attach(c); |
453 attach(c); |
454 focus(c); |
454 focus(c); |
455 arrange(); |
455 lt->arrange(); |
456 } |
456 } |