aewl

diff main.c @ 524:1a9a0877650c

keep master ratio on resizecol -> arrange
author Anselm R. Garbe <arg@10kloc.org>
date Thu, 05 Oct 2006 12:59:35 +0200
parents e5f8d6ac509c
children 451f19d48845
line diff
     1.1 --- a/main.c	Thu Oct 05 12:18:04 2006 +0200
     1.2 +++ b/main.c	Thu Oct 05 12:59:35 2006 +0200
     1.3 @@ -19,8 +19,8 @@
     1.4  
     1.5  char stext[1024];
     1.6  Bool *seltag;
     1.7 -int bx, by, bw, bh, bmw, master, screen, sx, sy, sw, sh;
     1.8 -unsigned int ntags, numlockmask;
     1.9 +int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh;
    1.10 +unsigned int master, ntags, numlockmask;
    1.11  Atom wmatom[WMLast], netatom[NetLast];
    1.12  Bool running = True;
    1.13  Bool issel = True;
    1.14 @@ -136,7 +136,7 @@
    1.15  	sx = sy = 0;
    1.16  	sw = DisplayWidth(dpy, screen);
    1.17  	sh = DisplayHeight(dpy, screen);
    1.18 -	master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
    1.19 +	master = MASTER;
    1.20  
    1.21  	bx = by = 0;
    1.22  	bw = sw;