dwm-meillo

diff view.c @ 529:e2bd83191fc6

small boundary check fix
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 05 Oct 2006 18:23:28 +0200
parents c0fffe6c207e
children 451f19d48845
line diff
     1.1 --- a/view.c	Thu Oct 05 18:18:47 2006 +0200
     1.2 +++ b/view.c	Thu Oct 05 18:23:28 2006 +0200
     1.3 @@ -248,12 +248,12 @@
     1.4  		return;
     1.5  
     1.6  	if(sel == getnext(clients)) {
     1.7 -		if(master + arg->i > 95 || master + arg->i < 5)
     1.8 +		if(master + arg->i > 950 || master + arg->i < 50)
     1.9  			return;
    1.10  		master += arg->i;
    1.11  	}
    1.12  	else {
    1.13 -		if(master - arg->i > 95 || master - arg->i < 5)
    1.14 +		if(master - arg->i > 950 || master - arg->i < 50)
    1.15  			return;
    1.16  		master -= arg->i;
    1.17  	}