about summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2011-10-17 18:18:38 +0000
committerokan <okan>2011-10-17 18:18:38 +0000
commitfded46ba9f3dd3f6b8173856cc4247a21ef3994e (patch)
tree50a13e7376779a8b6e951c8bd7e568328c2506e8 /mousefunc.c
parentf60f630b811991d0e21b1339918e2ccdc89c4df0 (diff)
downloadcwm-fded46ba9f3dd3f6b8173856cc4247a21ef3994e.tar.gz
cwm-fded46ba9f3dd3f6b8173856cc4247a21ef3994e.tar.xz
cwm-fded46ba9f3dd3f6b8173856cc4247a21ef3994e.zip
rename variable to reduce potential for name-space collision.
bikesheding and ok oga@.
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mousefunc.c b/mousefunc.c
index ddbcff1..c165977 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -78,7 +78,7 @@ void
 mousefunc_window_resize(struct client_ctx *cc, void *arg)
 {
 	XEvent			 ev;
-	Time			 time = 0;
+	Time			 ltime = 0;
 	struct screen_ctx	*sc = cc->sc;
 	int			 x = cc->geom.x, y = cc->geom.y;
 
@@ -108,13 +108,13 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
 				mousefunc_sweep_draw(cc);
 
 			/* don't resize more than 60 times / second */
-			if ((ev.xmotion.time - time) > (1000 / 60)) {
-				time = ev.xmotion.time;
+			if ((ev.xmotion.time - ltime) > (1000 / 60)) {
+				ltime = ev.xmotion.time;
 				client_resize(cc);
 			}
 			break;
 		case ButtonRelease:
-			if (time)
+			if (ltime)
 				client_resize(cc);
 			XUnmapWindow(X_Dpy, sc->menuwin);
 			XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0);
@@ -136,7 +136,7 @@ void
 mousefunc_window_move(struct client_ctx *cc, void *arg)
 {
 	XEvent			 ev;
-	Time			 time = 0;
+	Time			 ltime = 0;
 	int			 px, py;
 
 	client_raise(cc);
@@ -168,13 +168,13 @@ mousefunc_window_move(struct client_ctx *cc, void *arg)
 			    cc->bwidth, Conf.snapdist);
 
 			/* don't move more than 60 times / second */
-			if ((ev.xmotion.time - time) > (1000 / 60)) {
-				time = ev.xmotion.time;
+			if ((ev.xmotion.time - ltime) > (1000 / 60)) {
+				ltime = ev.xmotion.time;
 				client_move(cc);
 			}
 			break;
 		case ButtonRelease:
-			if (time)
+			if (ltime)
 				client_move(cc);
 			xu_ptr_ungrab();
 			return;