dwm-meillo
changeset 478:635b58a87d20
patched resizemouse according to sanders remark
author | arg@mmvi |
---|---|
date | Fri, 22 Sep 2006 11:24:01 +0200 |
parents | bf3de99b7c0c |
children | de69a7b0c8fa |
files | event.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/event.c Fri Sep 22 10:01:51 2006 +0200 1.2 +++ b/event.c Fri Sep 22 11:24:01 2006 +0200 1.3 @@ -108,9 +108,9 @@ 1.4 case MotionNotify: 1.5 XSync(dpy, False); 1.6 if((nw = abs(ocx - ev.xmotion.x))) 1.7 - c->w = abs(ocx - ev.xmotion.x); 1.8 + c->w = nw; 1.9 if((nh = abs(ocy - ev.xmotion.y))) 1.10 - c->h = abs(ocy - ev.xmotion.y); 1.11 + c->h = nh; 1.12 c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w; 1.13 c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; 1.14 if(ocx <= ev.xmotion.x)