aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-29 18:21:02 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-29 18:21:02 +0200
commite0f64e63db654330bf4219a25b8989a72123d661 (patch)
treef4d8bfab1ac02f69488a2c32ede2eb51148b82e1 /client.c
parentdddd58a8cdc9ffd9f207c45316e9f9a28b4bf519 (diff)
downloaddwm-e0f64e63db654330bf4219a25b8989a72123d661.tar
dwm-e0f64e63db654330bf4219a25b8989a72123d661.tar.gz
dwm-e0f64e63db654330bf4219a25b8989a72123d661.tar.bz2
applied ality's hardcode-0 patches
Diffstat (limited to 'client.c')
-rw-r--r--client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/client.c b/client.c
index 98b46a3..efa9669 100644
--- a/client.c
+++ b/client.c
@@ -216,10 +216,10 @@ manage(Window w, XWindowAttributes *wa) {
if(c->x + c->w + 2 * BORDERPX > sw)
c->x = sw - c->w - 2 * BORDERPX;
- if(c->x < 0)
- c->x = 0;
+ if(c->x < sx)
+ c->x = sx;
if(c->y + c->h + 2 * BORDERPX > sh)
- c->y = sh - c->h - 2;
+ c->y = sh - c->h - 2 * BORDERPX;
if(c->h != sh && c->y < bh)
c->y = bh;
@@ -285,8 +285,8 @@ resize(Client *c, Bool sizehints, Corner sticky) {
c->y = bottom - c->h;
/* offscreen appearance fixes */
- if(c->x + c->w < 0)
- c->x = 0;
+ if(c->x + c->w < sx)
+ c->x = sx;
if(c->y + c->h < bh)
c->y = bh;
if(c->x > sw)