aewl
changeset 558:e249e2952a32
applied Gottox patch to simplify the resizing of col, instead of resizing the current area, it only resizes the master area in the future (seems more predictable)
author | arg@mig29 |
---|---|
date | Tue, 31 Oct 2006 12:06:38 +0100 |
parents | 9a17f6e105f4 |
children | a2c465098a3b |
files | config.mk dwm.1 view.c |
diffstat | 3 files changed, 5 insertions(+), 20 deletions(-) [+] |
line diff
1.1 --- a/config.mk Tue Oct 31 09:02:42 2006 +0100 1.2 +++ b/config.mk Tue Oct 31 12:06:38 2006 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 # dwm version 1.5 -VERSION = 2.0 1.6 +VERSION = 2.1 1.7 1.8 # Customize below to fit your system 1.9
2.1 --- a/dwm.1 Tue Oct 31 09:02:42 2006 +0100 2.2 +++ b/dwm.1 Tue Oct 31 12:06:38 2006 +0100 2.3 @@ -63,10 +63,10 @@ 2.4 Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode). 2.5 .TP 2.6 .B Mod1-g 2.7 -Grow current area (tiling mode only). 2.8 +Grow master area (tiling mode only). 2.9 .TP 2.10 .B Mod1-s 2.11 -Shrink current area (tiling mode only). 2.12 +Shrink master area (tiling mode only). 2.13 .TP 2.14 .B Mod1-Shift-[1..n] 2.15 Apply
3.1 --- a/view.c Tue Oct 31 09:02:42 2006 +0100 3.2 +++ b/view.c Tue Oct 31 12:06:38 2006 +0100 3.3 @@ -196,24 +196,9 @@ 3.4 3.5 void 3.6 resizecol(Arg *arg) { 3.7 - unsigned int n; 3.8 - Client *c; 3.9 - 3.10 - for(n = 0, c = clients; c; c = c->next) 3.11 - if(isvisible(c) && !c->isfloat) 3.12 - n++; 3.13 - if(!sel || sel->isfloat || n < 2 || (arrange == dofloat)) 3.14 + if(master + arg->i > 950 || master + arg->i < 50) 3.15 return; 3.16 - if(sel == getnext(clients)) { 3.17 - if(master + arg->i > 950 || master + arg->i < 50) 3.18 - return; 3.19 - master += arg->i; 3.20 - } 3.21 - else { 3.22 - if(master - arg->i > 950 || master - arg->i < 50) 3.23 - return; 3.24 - master -= arg->i; 3.25 - } 3.26 + master += arg->i; 3.27 arrange(); 3.28 } 3.29