tremoved obsolete stuff - dwm - [fork] customized build of dwm, the dynamic win… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3f942f9e798d4222116ae4c083d2482ddb1e972b | |
parent 7e433694ffa59c5b47f216409d5fd2d68b77742e | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Thu, 13 Jul 2006 10:25:57 +0200 | |
removed obsolete stuff | |
Diffstat: | |
M mouse.c | 25 ++++++++++++------------- | |
1 file changed, 12 insertions(+), 13 deletions(-) | |
--- | |
diff --git a/mouse.c b/mouse.c | |
t@@ -1,6 +1,5 @@ | |
/* | |
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> | |
- * (C)opyright MMVI Kris Maglione <[email protected]> | |
* See LICENSE file for license details. | |
*/ | |
t@@ -17,10 +16,10 @@ void | |
mresize(Client *c) | |
{ | |
XEvent ev; | |
- int old_cx, old_cy; | |
+ int ocx, ocy; | |
- old_cx = c->x; | |
- old_cy = c->y; | |
+ ocx = c->x; | |
+ ocy = c->y; | |
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAs… | |
None, cursor[CurResize], CurrentTime) != GrabS… | |
return; | |
t@@ -34,10 +33,10 @@ mresize(Client *c) | |
break; | |
case MotionNotify: | |
XFlush(dpy); | |
- c->w = abs(old_cx - ev.xmotion.x); | |
- c->h = abs(old_cy - ev.xmotion.y); | |
- c->x = (old_cx <= ev.xmotion.x) ? old_cx : old_cx - c-… | |
- c->y = (old_cy <= ev.xmotion.y) ? old_cy : old_cy - c-… | |
+ c->w = abs(ocx - ev.xmotion.x); | |
+ c->h = abs(ocy - ev.xmotion.y); | |
+ c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - c->w; | |
+ c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - c->h; | |
resize(c); | |
break; | |
case ButtonRelease: | |
t@@ -51,12 +50,12 @@ void | |
mmove(Client *c) | |
{ | |
XEvent ev; | |
- int x1, y1, old_cx, old_cy, di; | |
+ int x1, y1, ocx, ocy, di; | |
unsigned int dui; | |
Window dummy; | |
- old_cx = c->x; | |
- old_cy = c->y; | |
+ ocx = c->x; | |
+ ocy = c->y; | |
if(XGrabPointer(dpy, root, False, MouseMask, GrabModeAsync, GrabModeAs… | |
None, cursor[CurMove], CurrentTime) != GrabSuc… | |
return; | |
t@@ -70,8 +69,8 @@ mmove(Client *c) | |
break; | |
case MotionNotify: | |
XFlush(dpy); | |
- c->x = old_cx + (ev.xmotion.x - x1); | |
- c->y = old_cy + (ev.xmotion.y - y1); | |
+ c->x = ocx + (ev.xmotion.x - x1); | |
+ c->y = ocy + (ev.xmotion.y - y1); | |
resize(c); | |
break; | |
case ButtonRelease: |