comparison layout.c @ 7:162accc5d36d

remove cascade layout
author paulo@thepaulopc
date Tue, 14 Jun 2011 00:03:39 -0700
parents e060ab82b136
children 85763b447d0f
comparison
equal deleted inserted replaced
3:a2dde5f412d7 4:7994e82445b0
141 141
142 restack(); 142 restack();
143 } 143 }
144 144
145 static void 145 static void
146 cascade(void) {
147 unsigned int i, n, px = 20;
148 Client *c;
149
150 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next), n++);
151
152 for(i = 0, c = clients; c; c = c->next)
153 if(isvisible(c)) {
154 if(c->isbanned) {
155 XMoveWindow(dpy, c->win, c->x, c->y);
156 c->isbanned = False;
157 }
158 if(!c->isversatile) {
159 resize(c, wax+(px*i), way+(px*i), waw-(px*(n-1))-2*c->border, wah-(px*(n-1))-2*c->border, True);
160 i++;
161 }
162 }
163 else if(!isvisible(c)) {
164 c->isbanned = True;
165 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
166 }
167
168 restack();
169 }
170
171 static void
172 bstack(void) { 146 bstack(void) {
173 unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th; 147 unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th;
174 Client *c; 148 Client *c;
175 149
176 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 150 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))