# HG changeset patch # User paulo@thepaulopc # Date 1308035019 25200 # Node ID 162accc5d36d639324db228cc05a2d7673de6b04 # Parent 0968b3739b8d01191b735d2efa62fb4dfea86213 remove cascade layout diff -r 0968b3739b8d -r 162accc5d36d config.h --- a/config.h Sun Jun 12 14:32:54 2011 -0700 +++ b/config.h Tue Jun 14 00:03:39 2011 -0700 @@ -40,7 +40,6 @@ { "#", grid }, \ { "U", bstack }, \ { "!", tile }, \ - /*{ "\\", cascade },*/ \ /* first entry is default */ \ }; #define MASTER 650 /* per thousand */ diff -r 0968b3739b8d -r 162accc5d36d layout.c --- a/layout.c Sun Jun 12 14:32:54 2011 -0700 +++ b/layout.c Tue Jun 14 00:03:39 2011 -0700 @@ -143,32 +143,6 @@ } static void -cascade(void) { - unsigned int i, n, px = 20; - Client *c; - - for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next), n++); - - for(i = 0, c = clients; c; c = c->next) - if(isvisible(c)) { - if(c->isbanned) { - XMoveWindow(dpy, c->win, c->x, c->y); - c->isbanned = False; - } - if(!c->isversatile) { - resize(c, wax+(px*i), way+(px*i), waw-(px*(n-1))-2*c->border, wah-(px*(n-1))-2*c->border, True); - i++; - } - } - else if(!isvisible(c)) { - c->isbanned = True; - XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); - } - - restack(); -} - -static void bstack(void) { unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th; Client *c;