diff options
author | hobbs <hobbs> | 2002-06-15 02:15:51 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-06-15 02:15:51 (GMT) |
commit | 11b4b98d1b57a31250dac923d121d85b7bf15048 (patch) | |
tree | 10960247ed817110117b99b41508fcc2c6f42d16 /generic/tkBind.c | |
parent | d18b292d99449aab54e2d042ee3dd2bd1a83891a (diff) | |
download | tk-11b4b98d1b57a31250dac923d121d85b7bf15048.zip tk-11b4b98d1b57a31250dac923d121d85b7bf15048.tar.gz tk-11b4b98d1b57a31250dac923d121d85b7bf15048.tar.bz2 |
* generic/tkBind.c (HandleEventGenerate):
* generic/tkInt.h: changed warpInProgress boolean from int to a
bit in the flags variable (TK_DISPLAY_IN_WARP)
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 198eb92..e472d8e 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkBind.c,v 1.23 2002/06/14 23:16:24 mdejong Exp $ + * RCS: @(#) $Id: tkBind.c,v 1.24 2002/06/15 02:15:51 hobbs Exp $ */ #include "tkPort.h" @@ -3792,9 +3792,9 @@ HandleEventGenerate(interp, mainWin, objc, objv) if ((warp != 0) && Tk_IsMapped(tkwin)) { TkDisplay *dispPtr; dispPtr = TkGetDisplay(event.xmotion.display); - if (!dispPtr->warpInProgress) { + if (!(dispPtr->flags & TK_DISPLAY_IN_WARP)) { Tcl_DoWhenIdle(DoWarp, (ClientData) dispPtr); - dispPtr->warpInProgress = 1; + dispPtr->flags |= TK_DISPLAY_IN_WARP; } dispPtr->warpWindow = event.xany.window; dispPtr->warpX = event.xkey.x; @@ -3863,7 +3863,7 @@ DoWarp(clientData) XWarpPointer(dispPtr->display, (Window) None, (Window) dispPtr->warpWindow, 0, 0, 0, 0, (int) dispPtr->warpX, (int) dispPtr->warpY); XForceScreenSaver(dispPtr->display, ScreenSaverReset); - dispPtr->warpInProgress = 0; + dispPtr->flags &= ~TK_DISPLAY_IN_WARP; } /* |