]> git.armaanb.net Git - dwm.git/commitdiff
applied Gottox patch to simplify the resizing of col, instead of resizing the current...
authorarg@mig29 <unknown>
Tue, 31 Oct 2006 11:06:38 +0000 (12:06 +0100)
committerarg@mig29 <unknown>
Tue, 31 Oct 2006 11:06:38 +0000 (12:06 +0100)
config.mk
dwm.1
view.c

index 17e15cb58e2d835cdf011f6a8f101350d7c0d184..2e8594aa0b2bf670a5405bcbf6977c1c2f8619a1 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 2.0
+VERSION = 2.1
 
 # Customize below to fit your system
 
diff --git a/dwm.1 b/dwm.1
index eb396e7572b2055b9a2ff88a9d74fe320b5f4305..f1b030e75e3516f50e2754520b0fe0807780b870 100644 (file)
--- a/dwm.1
+++ b/dwm.1
@@ -63,10 +63,10 @@ Focus previous window.
 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 --git a/view.c b/view.c
index 85bfabf3c359d9b79cafa555684cbccf6cb56bdc..4f42abe4bf06894ab436f6dd5c6ff4e38b8c63c2 100644 (file)
--- a/view.c
+++ b/view.c
@@ -196,24 +196,9 @@ isvisible(Client *c) {
 
 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();
 }