Sfoglia il codice sorgente

patched resizemouse according to sanders remark

arg@mmvi 19 anni fa
parent
commit
b2cb925d99
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      event.c

+ 2 - 2
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)