dwm-meillo

diff 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
line diff
     1.1 --- a/view.c	Tue Oct 31 09:02:42 2006 +0100
     1.2 +++ b/view.c	Tue Oct 31 12:06:38 2006 +0100
     1.3 @@ -196,24 +196,9 @@
     1.4  
     1.5  void
     1.6  resizecol(Arg *arg) {
     1.7 -	unsigned int n;
     1.8 -	Client *c;
     1.9 -
    1.10 -	for(n = 0, c = clients; c; c = c->next)
    1.11 -		if(isvisible(c) && !c->isfloat)
    1.12 -			n++;
    1.13 -	if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
    1.14 +	if(master + arg->i > 950 || master + arg->i < 50)
    1.15  		return;
    1.16 -	if(sel == getnext(clients)) {
    1.17 -		if(master + arg->i > 950 || master + arg->i < 50)
    1.18 -			return;
    1.19 -		master += arg->i;
    1.20 -	}
    1.21 -	else {
    1.22 -		if(master - arg->i > 950 || master - arg->i < 50)
    1.23 -			return;
    1.24 -		master -= arg->i;
    1.25 -	}
    1.26 +	master += arg->i;
    1.27  	arrange();
    1.28  }
    1.29