aewl

diff view.c @ 415:ad2b6ce6e95b

I really need column growing, now pushing upstream
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 05 Sep 2006 09:02:37 +0200
parents c6ffcc201229
children a43c395003bc
line diff
     1.1 --- a/view.c	Tue Sep 05 08:37:34 2006 +0200
     1.2 +++ b/view.c	Tue Sep 05 09:02:37 2006 +0200
     1.3 @@ -169,6 +169,24 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +void
     1.8 +growcol(Arg *arg)
     1.9 +{
    1.10 +	if(!sel || (arrange != dotile))
    1.11 +		return;
    1.12 +	if(sel == getnext(clients)) {
    1.13 +		if(mw + arg->i > sw - 100)
    1.14 +			return;
    1.15 +		mw += arg->i;
    1.16 +	}
    1.17 +	else {
    1.18 +		if(mw - arg->i < 100)
    1.19 +			return;
    1.20 +		mw -= arg->i;
    1.21 +	}
    1.22 +	arrange(NULL);
    1.23 +}
    1.24 +
    1.25  Bool
    1.26  isvisible(Client *c)
    1.27  {