about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-05 09:02:37 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-05 09:02:37 +0200
commit6499fc4f938eb7e61ab3e25df3904db9c890c693 (patch)
treebbe84ad7310956ec3de01e86145905af7658e3b2 /view.c
parent04f27a54380cbd2bb24d8a86b672af34bb38d2fa (diff)
downloaddwm-6499fc4f938eb7e61ab3e25df3904db9c890c693.tar.gz
I really need column growing, now pushing upstream
Diffstat (limited to 'view.c')
-rw-r--r--view.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/view.c b/view.c
index ac3d495..dc10e5e 100644
--- a/view.c
+++ b/view.c
@@ -169,6 +169,24 @@ focusprev(Arg *arg)
 	}
 }
 
+void
+growcol(Arg *arg)
+{
+	if(!sel || (arrange != dotile))
+		return;
+	if(sel == getnext(clients)) {
+		if(mw + arg->i > sw - 100)
+			return;
+		mw += arg->i;
+	}
+	else {
+		if(mw - arg->i < 100)
+			return;
+		mw -= arg->i;
+	}
+	arrange(NULL);
+}
+
 Bool
 isvisible(Client *c)
 {