diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-10-17 18:18:39 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-10-17 18:18:39 +0000 |
commit | d0704c63682975c2ee6237419fac92d3081e8947 (patch) | |
tree | 708649b15211c58cf08054a2c56752b3780d5d62 /app/cwm/mousefunc.c | |
parent | cfc7e9f933d054ff8f10a90086c357aced495207 (diff) |
rename variable to reduce potential for name-space collision.
bikesheding and ok oga@.
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r-- | app/cwm/mousefunc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c index b897a7fb1..574ef6246 100644 --- a/app/cwm/mousefunc.c +++ b/app/cwm/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.33 2011/09/03 09:42:33 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.34 2011/10/17 18:18:38 okan Exp $ */ #include <sys/param.h> @@ -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; |