diff options
author | stanton <stanton> | 1999-02-04 21:00:57 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-02-04 21:00:57 (GMT) |
commit | 38b51d80dba14cfd477100179e8e5daabee5b578 (patch) | |
tree | 888f33717929989d6788f9bf2f318e21984b7dbb /win | |
parent | 9b971a980e0054f319cdd698ecfbbafcef9f185c (diff) | |
download | tk-38b51d80dba14cfd477100179e8e5daabee5b578.zip tk-38b51d80dba14cfd477100179e8e5daabee5b578.tar.gz tk-38b51d80dba14cfd477100179e8e5daabee5b578.tar.bz2 |
* win/tkWinPointer.c: Changed to cancel the mouse timer when a
user initiated move/resize loop begins.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinPointer.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c index 8e8e476..e9c94be 100644 --- a/win/tkWinPointer.c +++ b/win/tkWinPointer.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinPointer.c,v 1.3 1998/09/14 18:24:01 stanton Exp $ + * RCS: @(#) $Id: tkWinPointer.c,v 1.4 1999/02/04 21:00:57 stanton Exp $ */ #include "tkWinInt.h" @@ -241,6 +241,31 @@ MouseTimerProc(clientData) /* *---------------------------------------------------------------------- * + * TkWinCancelMouseTimer -- + * + * If the mouse timer is set, cancel it. + * + * Results: + * None. + * + * Side effects: + * May cancel the mouse timer. + * + *---------------------------------------------------------------------- + */ + +void +TkWinCancelMouseTimer() +{ + if (mouseTimerSet) { + Tcl_DeleteTimerHandler(mouseTimer); + mouseTimerSet = 0; + } +} + +/* + *---------------------------------------------------------------------- + * * TkGetPointerCoords -- * * Fetch the position of the mouse pointer. |