1
0

patched resizemouse according to sanders remark

This commit is contained in:
arg@mmvi 2006-09-22 11:24:01 +02:00
parent 9fb6502b3b
commit b2cb925d99

View File

@ -108,9 +108,9 @@ resizemouse(Client *c) {
case MotionNotify: case MotionNotify:
XSync(dpy, False); XSync(dpy, False);
if((nw = abs(ocx - ev.xmotion.x))) if((nw = abs(ocx - ev.xmotion.x)))
c->w = abs(ocx - ev.xmotion.x); c->w = nw;
if((nh = abs(ocy - ev.xmotion.y))) 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->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w;
c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h;
if(ocx <= ev.xmotion.x) if(ocx <= ev.xmotion.x)