dwm-meillo

diff view.c @ 521:73afe7587bea

applied resizecol fix by Jukka
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 05 Oct 2006 11:00:55 +0200
parents d6d1d0033e3c
children fd1275f3b205
line diff
     1.1 --- a/view.c	Thu Oct 05 09:37:11 2006 +0200
     1.2 +++ b/view.c	Thu Oct 05 11:00:55 2006 +0200
     1.3 @@ -259,6 +259,7 @@
     1.4  
     1.5  void
     1.6  resizecol(Arg *arg) {
     1.7 +	int s;
     1.8  	unsigned int n;
     1.9  	Client *c;
    1.10  
    1.11 @@ -268,13 +269,14 @@
    1.12  	if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
    1.13  		return;
    1.14  
    1.15 +	s = stackpos == StackBottom ? sh - bh : sw;
    1.16  	if(sel == getnext(clients)) {
    1.17 -		if(master + arg->i > sw - MINW || master + arg->i < MINW)
    1.18 +		if(master + arg->i > s - MINW || master + arg->i < MINW)
    1.19  			return;
    1.20  		master += arg->i;
    1.21  	}
    1.22  	else {
    1.23 -		if(master - arg->i > sw - MINW || master - arg->i < MINW)
    1.24 +		if(master - arg->i > s - MINW || master - arg->i < MINW)
    1.25  			return;
    1.26  		master -= arg->i;
    1.27  	}