diff options
author | das <das> | 2009-04-10 15:54:07 (GMT) |
---|---|---|
committer | das <das> | 2009-04-10 15:54:07 (GMT) |
commit | 3e348841279c666655027f81674d30e841d75322 (patch) | |
tree | 1e9a8d02aadb4cc108109e135ace8199d02b0e05 /generic | |
parent | 2699354ccc53dd1987f0f37e7f29365cef776c0b (diff) | |
download | tk-3e348841279c666655027f81674d30e841d75322.zip tk-3e348841279c666655027f81674d30e841d75322.tar.gz tk-3e348841279c666655027f81674d30e841d75322.tar.bz2 |
* generic/tkBind.c (HandleEventGenerate): ensure window exists before
generating an event for it (fixes testsuite crash).
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 0d542b0..4468793 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.52 2009/01/09 07:03:31 nijtmans Exp $ + * RCS: @(#) $Id: tkBind.c,v 1.53 2009/04/10 15:54:07 das Exp $ */ #include "tkInt.h" @@ -3325,6 +3325,7 @@ HandleEventGenerate( event.xany.serial = NextRequest(Tk_Display(tkwin)); event.xany.send_event = False; if (windowName[0]) { + Tk_MakeWindowExist(tkwin); event.xany.window = Tk_WindowId(tkwin); } else { event.xany.window = |