aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarg@mmvi <unknown>2006-09-22 11:24:01 +0200
committerarg@mmvi <unknown>2006-09-22 11:24:01 +0200
commitb2cb925d999f0b745f8be23316258c4f575cb343 (patch)
treeb2c4e38957ca2acb257dc4ccfacd5fc850093932
parent9fb6502b3b8c2293cc41c73516446e45670f40ed (diff)
patched resizemouse according to sanders remark
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 1939cd5..86c4819 100644
--- a/event.c
+++ b/event.c
@@ -108,9 +108,9 @@ resizemouse(Client *c) {
case MotionNotify:
XSync(dpy, False);
if((nw = abs(ocx - ev.xmotion.x)))
- c->w = abs(ocx - ev.xmotion.x);
+ c->w = nw;
if((nh = abs(ocy - ev.xmotion.y)))
- c->h = abs(ocy - ev.xmotion.y);
+ c->h = nh;
c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
if(ocx <= ev.xmotion.x)