summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-31 12:06:38 +0100
committerarg@mig29 <unknown>2006-10-31 12:06:38 +0100
commit2cce4b95cdce5617318fc4fb5d21abe41110c27a (patch)
treecd284e2eba0c287ea2a0d32fc3939f3c9607091a
parentAdded tag 2.0 for changeset 12deea36603da407e3f32640048846a3bd74a9ec (diff)
downloaddwm-2cce4b95cdce5617318fc4fb5d21abe41110c27a.tar.gz
dwm-2cce4b95cdce5617318fc4fb5d21abe41110c27a.zip
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)
Diffstat (limited to '')
-rw-r--r--config.mk2
-rw-r--r--dwm.14
-rw-r--r--view.c19
3 files changed, 5 insertions, 20 deletions
diff --git a/config.mk b/config.mk
index 17e15cb..2e8594a 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dwm version 1# dwm version
2VERSION = 2.0 2VERSION = 2.1
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/dwm.1 b/dwm.1
index eb396e7..f1b030e 100644
--- a/dwm.1
+++ b/dwm.1
@@ -63,10 +63,10 @@ Focus previous window.
63Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode). 63Zooms/cycles current window to/from master area (tiling mode), toggles maximization current window (floating mode).
64.TP 64.TP
65.B Mod1-g 65.B Mod1-g
66Grow current area (tiling mode only). 66Grow master area (tiling mode only).
67.TP 67.TP
68.B Mod1-s 68.B Mod1-s
69Shrink current area (tiling mode only). 69Shrink master area (tiling mode only).
70.TP 70.TP
71.B Mod1-Shift-[1..n] 71.B Mod1-Shift-[1..n]
72Apply 72Apply
diff --git a/view.c b/view.c
index 85bfabf..4f42abe 100644
--- a/view.c
+++ b/view.c
@@ -196,24 +196,9 @@ isvisible(Client *c) {
196 196
197void 197void
198resizecol(Arg *arg) { 198resizecol(Arg *arg) {
199 unsigned int n; 199 if(master + arg->i > 950 || master + arg->i < 50)
200 Client *c;
201
202 for(n = 0, c = clients; c; c = c->next)
203 if(isvisible(c) && !c->isfloat)
204 n++;
205 if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
206 return; 200 return;
207 if(sel == getnext(clients)) { 201 master += arg->i;
208 if(master + arg->i > 950 || master + arg->i < 50)
209 return;
210 master += arg->i;
211 }
212 else {
213 if(master - arg->i > 950 || master - arg->i < 50)
214 return;
215 master -= arg->i;
216 }
217 arrange(); 202 arrange();
218} 203}
219 204