diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 031ded7..5b53a4e 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.9 1999/12/14 06:52:25 hobbs Exp $ + * RCS: @(#) $Id: tkBind.c,v 1.10 2000/01/13 02:07:10 hobbs Exp $ */ #include "tkPort.h" @@ -3691,7 +3691,10 @@ HandleEventGenerate(interp, mainWin, objc, objv) } else { Tk_QueueWindowEvent(&event, pos); } - if (warp != 0) { + /* + * We only allow warping if the window is mapped + */ + if ((warp != 0) && Tk_IsMapped(tkwin)) { TkDisplay *dispPtr; dispPtr = TkGetDisplay(event.xmotion.display); if (!dispPtr->warpInProgress) { |