# HG changeset patch # User arg@mig29 # Date 1162292798 -3600 # Node ID e249e2952a322a24de6a785f21a6775ff517501c # Parent 9a17f6e105f4b6e7d1956ec7ddc782f6ed51d083 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) diff -r 9a17f6e105f4 -r e249e2952a32 config.mk --- a/config.mk Tue Oct 31 09:02:42 2006 +0100 +++ b/config.mk Tue Oct 31 12:06:38 2006 +0100 @@ -1,5 +1,5 @@ # dwm version -VERSION = 2.0 +VERSION = 2.1 # Customize below to fit your system diff -r 9a17f6e105f4 -r e249e2952a32 dwm.1 --- a/dwm.1 Tue Oct 31 09:02:42 2006 +0100 +++ b/dwm.1 Tue Oct 31 12:06:38 2006 +0100 @@ -63,10 +63,10 @@ Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode). .TP .B Mod1-g -Grow current area (tiling mode only). +Grow master area (tiling mode only). .TP .B Mod1-s -Shrink current area (tiling mode only). +Shrink master area (tiling mode only). .TP .B Mod1-Shift-[1..n] Apply diff -r 9a17f6e105f4 -r e249e2952a32 view.c --- a/view.c Tue Oct 31 09:02:42 2006 +0100 +++ b/view.c Tue Oct 31 12:06:38 2006 +0100 @@ -196,24 +196,9 @@ void resizecol(Arg *arg) { - unsigned int n; - Client *c; - - for(n = 0, c = clients; c; c = c->next) - if(isvisible(c) && !c->isfloat) - n++; - if(!sel || sel->isfloat || n < 2 || (arrange == dofloat)) + if(master + arg->i > 950 || master + arg->i < 50) return; - if(sel == getnext(clients)) { - if(master + arg->i > 950 || master + arg->i < 50) - return; - master += arg->i; - } - else { - if(master - arg->i > 950 || master - arg->i < 50) - return; - master -= arg->i; - } + master += arg->i; arrange(); }