Introduction
Introduction Statistics Contact Development Disclaimer Help
tpatched resizemouse according to sanders remark - dwm - [fork] customized buil…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit b2cb925d999f0b745f8be23316258c4f575cb343
parent 9fb6502b3b8c2293cc41c73516446e45670f40ed
Author: arg@mmvi <unknown>
Date: Fri, 22 Sep 2006 11:24:01 +0200
patched resizemouse according to sanders remark
Diffstat:
M event.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/event.c b/event.c
t@@ -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)
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.