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 16:11:52 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-05 16:11:52 +0200
commita82e7b765e8da9fedb8fae6b102796f0494a4f5e (patch)
tree7680df655102bb912e3c51f3a105f7591c511fdd /view.c
parent0ed0fa4d5b3d5f0215c76563dbb72475eed1f3e8 (diff)
downloaddwm-a82e7b765e8da9fedb8fae6b102796f0494a4f5e.tar.gz
fixing two off-by-ones
Diffstat (limited to 'view.c')
-rw-r--r--view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/view.c b/view.c
index 587c53a..c005a33 100644
--- a/view.c
+++ b/view.c
@@ -193,12 +193,12 @@ resizecol(Arg *arg)
 		return;
 
 	if(sel == getnext(clients)) {
-		if(mw + arg->i > sw - 100)
+		if(mw + arg->i > sw - 100 || mw + arg->i < 100)
 			return;
 		mw += arg->i;
 	}
 	else {
-		if(mw - arg->i < 100)
+		if(mw - arg->i > sw - 100 || mw - arg->i < 100)
 			return;
 		mw -= arg->i;
 	}