dwm-meillo

changeset 561:b5435d3fb7b0

applied Jukkas patch
author arg@mig29
date Fri, 03 Nov 2006 08:29:39 +0100
parents 349ba0dc3fa7
children def7247888d4
files view.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/view.c	Thu Nov 02 10:18:22 2006 +0100
     1.2 +++ b/view.c	Fri Nov 03 08:29:39 2006 +0100
     1.3 @@ -196,9 +196,13 @@
     1.4  
     1.5  void
     1.6  resizemaster(Arg *arg) {
     1.7 -	if(master + arg->i > 950 || master + arg->i < 50)
     1.8 -		return;
     1.9 -	master += arg->i;
    1.10 +	if(arg->i == 0)
    1.11 +		master = MASTER;
    1.12 +	else {
    1.13 +		if(master + arg->i > 950 || master + arg->i < 50)
    1.14 +			return;
    1.15 +		master += arg->i;
    1.16 +	}
    1.17  	arrange();
    1.18  }
    1.19