summary refs log tree commit diff
diff options
context:
space:
mode:
-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);