summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2008-05-23 18:57:35 +0000
committerokan <okan>2008-05-23 18:57:35 +0000
commit72bc2a295bee9be28c3169f37c82000ae2a25f3b (patch)
tree0fa5e3ae60ca9469c8844a5451716c39741a7718
parent48528d9ba1b2b2fb1b0a46d772d280827018a246 (diff)
downloadcwm-72bc2a295bee9be28c3169f37c82000ae2a25f3b.tar.gz
cwm-72bc2a295bee9be28c3169f37c82000ae2a25f3b.tar.xz
cwm-72bc2a295bee9be28c3169f37c82000ae2a25f3b.zip
make sure to take bwdith into account when placing a new window.
ok oga@
-rw-r--r--client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/client.c b/client.c
index 5026ac6..0c5584d 100644
--- a/client.c
+++ b/client.c
@@ -665,9 +665,8 @@ client_placecalc(struct client_ctx *cc)
 	height = cc->geom.height;
 	width = cc->geom.width;
 
-
-	yslack = sc->ymax - cc->geom.height;
-	xslack = sc->xmax - cc->geom.width;
+	yslack = sc->ymax - cc->geom.height - cc->bwidth;
+	xslack = sc->xmax - cc->geom.width - cc->bwidth;
 
 	xu_ptr_getpos(sc->rootwin, &mousex, &mousey);