summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2008-07-15 13:52:02 +0000
committerokan <okan>2008-07-15 13:52:02 +0000
commit96f03c8cbc22e9df92880aa0d7a2a7cff92701b2 (patch)
tree3e50d501da8d1c2b376bb201aa33d7549afb345f /client.c
parent6d268bfa4af47938fa55e2e8b4f2f141fee0753a (diff)
downloadcwm-96f03c8cbc22e9df92880aa0d7a2a7cff92701b2.tar.gz
cwm-96f03c8cbc22e9df92880aa0d7a2a7cff92701b2.tar.xz
cwm-96f03c8cbc22e9df92880aa0d7a2a7cff92701b2.zip
don't compensate for bwidth twice.
ok oga@
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 5408b08..c67f650 100644
--- a/client.c
+++ b/client.c
@@ -682,7 +682,7 @@ client_placecalc(struct client_ctx *cc)
 				cc->geom.x -= Conf.gap_right;
 		} else {
 			cc->geom.x = cc->bwidth + Conf.gap_left;
-			cc->geom.width = sc->xmax - cc->bwidth - Conf.gap_left;
+			cc->geom.width = sc->xmax - Conf.gap_left;
 		}
 		if (yslack >= 0) {
 			cc->geom.y = MAX(MIN(ymouse, yslack),
@@ -691,7 +691,7 @@ client_placecalc(struct client_ctx *cc)
 				cc->geom.y -= Conf.gap_bottom;
 		} else {
 			cc->geom.y = cc->bwidth + Conf.gap_top;
-			cc->geom.height = sc->ymax - cc->bwidth - Conf.gap_top;
+			cc->geom.height = sc->ymax - Conf.gap_top;
 		}
 	}
 }