comparison view.c @ 558:e249e2952a32

applied Gottox patch to simplify the resizing of col, instead of resizing the current area, it only resizes the master area in the future (seems more predictable)
author arg@mig29
date Tue, 31 Oct 2006 12:06:38 +0100
parents fd1061442711
children a2c465098a3b
comparison
equal deleted inserted replaced
557:9a17f6e105f4 558:e249e2952a32
194 return False; 194 return False;
195 } 195 }
196 196
197 void 197 void
198 resizecol(Arg *arg) { 198 resizecol(Arg *arg) {
199 unsigned int n; 199 if(master + arg->i > 950 || master + arg->i < 50)
200 Client *c; 200 return;
201 201 master += arg->i;
202 for(n = 0, c = clients; c; c = c->next)
203 if(isvisible(c) && !c->isfloat)
204 n++;
205 if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
206 return;
207 if(sel == getnext(clients)) {
208 if(master + arg->i > 950 || master + arg->i < 50)
209 return;
210 master += arg->i;
211 }
212 else {
213 if(master - arg->i > 950 || master - arg->i < 50)
214 return;
215 master -= arg->i;
216 }
217 arrange(); 202 arrange();
218 } 203 }
219 204
220 void 205 void
221 restack(void) { 206 restack(void) {