diff layout.c @ 7:162accc5d36d

remove cascade layout
author paulo@thepaulopc
date Tue, 14 Jun 2011 00:03:39 -0700
parents e060ab82b136
children 85763b447d0f
line diff
     1.1 --- a/layout.c	Sun Jun 12 14:32:54 2011 -0700
     1.2 +++ b/layout.c	Tue Jun 14 00:03:39 2011 -0700
     1.3 @@ -143,32 +143,6 @@
     1.4  }
     1.5  
     1.6  static void
     1.7 -cascade(void) {
     1.8 -	unsigned int i, n, px = 20;	
     1.9 -	Client *c;
    1.10 -
    1.11 -	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next), n++);
    1.12 -
    1.13 -	for(i = 0, c = clients; c; c = c->next)
    1.14 -		if(isvisible(c)) {
    1.15 -			if(c->isbanned) {
    1.16 -				XMoveWindow(dpy, c->win, c->x, c->y);
    1.17 -				c->isbanned = False;
    1.18 -			}
    1.19 -			if(!c->isversatile) {
    1.20 -				resize(c, wax+(px*i), way+(px*i), waw-(px*(n-1))-2*c->border, wah-(px*(n-1))-2*c->border, True); 
    1.21 -				i++;
    1.22 -			}
    1.23 -		}
    1.24 -		else if(!isvisible(c)) {
    1.25 -			c->isbanned = True;
    1.26 -			XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
    1.27 -		}
    1.28 -
    1.29 -	restack();
    1.30 -}
    1.31 -
    1.32 -static void
    1.33  bstack(void) {
    1.34  	unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th;
    1.35  	Client *c;