summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-13 02:07:08 (GMT)
committerhobbs <hobbs>2000-01-13 02:07:08 (GMT)
commit62d7b7db73ba85f767609d5b5dde1de23d0561dd (patch)
tree4cc0aa45119d3b6c37ab58d50cf1618329ea1a7d /generic
parentcaadb14caf4b6dfe5e4291b37e96709579368fd7 (diff)
downloadtk-62d7b7db73ba85f767609d5b5dde1de23d0561dd.zip
tk-62d7b7db73ba85f767609d5b5dde1de23d0561dd.tar.gz
tk-62d7b7db73ba85f767609d5b5dde1de23d0561dd.tar.bz2
* doc/event.n:
* generic/tkBind.c: prevented core with event -warp on Windows when window wasn't mapped [Bug: 4004] and added docs stating the requirement for mapped windows.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkBind.c7
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) {