diff options
| author | arg@mmvi <unknown> | 2006-09-22 11:24:01 +0200 |
|---|---|---|
| committer | arg@mmvi <unknown> | 2006-09-22 11:24:01 +0200 |
| commit | b2cb925d999f0b745f8be23316258c4f575cb343 (patch) | |
| tree | b2c4e38957ca2acb257dc4ccfacd5fc850093932 /event.c | |
| parent | small man page fix (diff) | |
| download | dwm-b2cb925d999f0b745f8be23316258c4f575cb343.tar.gz dwm-b2cb925d999f0b745f8be23316258c4f575cb343.zip | |
patched resizemouse according to sanders remark
Diffstat (limited to '')
| -rw-r--r-- | event.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -108,9 +108,9 @@ resizemouse(Client *c) { | |||
| 108 | case MotionNotify: | 108 | case MotionNotify: |
| 109 | XSync(dpy, False); | 109 | XSync(dpy, False); |
| 110 | if((nw = abs(ocx - ev.xmotion.x))) | 110 | if((nw = abs(ocx - ev.xmotion.x))) |
| 111 | c->w = abs(ocx - ev.xmotion.x); | 111 | c->w = nw; |
| 112 | if((nh = abs(ocy - ev.xmotion.y))) | 112 | if((nh = abs(ocy - ev.xmotion.y))) |
| 113 | c->h = abs(ocy - ev.xmotion.y); | 113 | c->h = nh; |
| 114 | c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w; | 114 | c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w; |
| 115 | c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; | 115 | c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; |
| 116 | if(ocx <= ev.xmotion.x) | 116 | if(ocx <= ev.xmotion.x) |
