summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-05-12 21:04:16 (GMT)
committerhobbs <hobbs>2000-05-12 21:04:16 (GMT)
commit454cdc9639ffc63385001d9eb87777ab0cc67fa8 (patch)
tree8d06a59941e1029c35a4b13648c7adcae721877e /win
parent31a9095e823a5d4886f4351cf3b69fff92dca049 (diff)
downloadtk-454cdc9639ffc63385001d9eb87777ab0cc67fa8.zip
tk-454cdc9639ffc63385001d9eb87777ab0cc67fa8.tar.gz
tk-454cdc9639ffc63385001d9eb87777ab0cc67fa8.tar.bz2
added TK_DONT_DESTROY_WINDOW flag to check in RaiseWinWhenIdle to
prevent timing sensitive crash
Diffstat (limited to 'win')
-rw-r--r--win/tkWinWm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 7be7598..c0233cc 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.22 2000/04/15 17:38:13 hobbs Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.22.2.1 2000/05/12 21:04:16 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -4559,7 +4559,8 @@ RaiseWinWhenIdle(clientData)
{
register TkWindow *winPtr = (TkWindow *) clientData;
- if ((winPtr == NULL) || (winPtr->flags & TK_ALREADY_DEAD)) {
+ if ((winPtr == NULL)
+ || (winPtr->flags & (TK_ALREADY_DEAD|TK_DONT_DESTROY_WINDOW))) {
return;
}
if (winPtr->wmInfoPtr->flags & WM_UPDATE_PENDING) {