aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 40e5b3c..9944a05 100644
--- a/client.c
+++ b/client.c
@@ -209,7 +209,7 @@ manage(Window w, XWindowAttributes *wa)
diff = sw - c->fw;
c->fx = random() % (diff ? diff : 1);
- diff = sh - c->fh;
+ diff = sh - c->fh - bh;
c->fy = random() % (diff ? diff : 1);
c->border = 1;