Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-11pba
changeset 7:162accc5d36d
remove cascade layout
author | paulo@thepaulopc |
---|---|
date | Tue, 14 Jun 2011 00:03:39 -0700 |
parents | 0968b3739b8d |
children | e749c30135e9 |
files | config.h layout.c |
diffstat | 2 files changed, 0 insertions(+), 27 deletions(-) [+] |
line diff
1.1 --- a/config.h Sun Jun 12 14:32:54 2011 -0700 1.2 +++ b/config.h Tue Jun 14 00:03:39 2011 -0700 1.3 @@ -40,7 +40,6 @@ 1.4 { "#", grid }, \ 1.5 { "U", bstack }, \ 1.6 { "!", tile }, \ 1.7 - /*{ "\\", cascade },*/ \ 1.8 /* first entry is default */ \ 1.9 }; 1.10 #define MASTER 650 /* per thousand */
2.1 --- a/layout.c Sun Jun 12 14:32:54 2011 -0700 2.2 +++ b/layout.c Tue Jun 14 00:03:39 2011 -0700 2.3 @@ -143,32 +143,6 @@ 2.4 } 2.5 2.6 static void 2.7 -cascade(void) { 2.8 - unsigned int i, n, px = 20; 2.9 - Client *c; 2.10 - 2.11 - for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next), n++); 2.12 - 2.13 - for(i = 0, c = clients; c; c = c->next) 2.14 - if(isvisible(c)) { 2.15 - if(c->isbanned) { 2.16 - XMoveWindow(dpy, c->win, c->x, c->y); 2.17 - c->isbanned = False; 2.18 - } 2.19 - if(!c->isversatile) { 2.20 - resize(c, wax+(px*i), way+(px*i), waw-(px*(n-1))-2*c->border, wah-(px*(n-1))-2*c->border, True); 2.21 - i++; 2.22 - } 2.23 - } 2.24 - else if(!isvisible(c)) { 2.25 - c->isbanned = True; 2.26 - XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); 2.27 - } 2.28 - 2.29 - restack(); 2.30 -} 2.31 - 2.32 -static void 2.33 bstack(void) { 2.34 unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th; 2.35 Client *c;