summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-19 17:27:30 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-19 17:27:30 +0100
commit6bdef73a4f0c2a96f8984ddc10b55f1d753ab5fe (patch)
treeeb89d632ef080c31919735b79bef86faa52034f3
parent234b12eb73f5c6de3da4eb93cac2159e73647529 (diff)
downloaddwm-6bdef73a4f0c2a96f8984ddc10b55f1d753ab5fe.tar.gz
take bar into account
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 37df864..16e04b0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -963,7 +963,7 @@ manage(Window w, XWindowAttributes *wa) {
if(c->y + c->h + 2 * c->bw > sy + sh)
c->y = sy + sh - c->h - 2 * c->bw;
c->x = MAX(c->x, sx);
- c->y = MAX(c->y, sy);
+ c->y = MAX(c->y, by == 0 ? bh : sy);
c->bw = borderpx;
}