summaryrefslogtreecommitdiffstats
path: root/generic/tclNotify.c
diff options
context:
space:
mode:
authorrjohnson <rjohnson@noemail.net>1998-10-14 21:12:08 (GMT)
committerrjohnson <rjohnson@noemail.net>1998-10-14 21:12:08 (GMT)
commit1c240b1ae52a7047b8902a4d3ff60450c49a48c8 (patch)
treea0b3e9cad0d6e7ea49f0c24dfd8b5587d0e57887 /generic/tclNotify.c
parent5cf2a5e2686f6f6f70011eea4071d570af442331 (diff)
downloadtcl-1c240b1ae52a7047b8902a4d3ff60450c49a48c8.zip
tcl-1c240b1ae52a7047b8902a4d3ff60450c49a48c8.tar.gz
tcl-1c240b1ae52a7047b8902a4d3ff60450c49a48c8.tar.bz2
Added fix to list processing in tclNotify that could cause events to be dropped.
Added test to intetp test suite. FossilOrigin-Name: 38ee7119c7b9311c45d5dce6bd192a79c6af6a7c
Diffstat (limited to 'generic/tclNotify.c')
-rw-r--r--generic/tclNotify.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/tclNotify.c b/generic/tclNotify.c
index 23e52f7..13c5a13 100644
--- a/generic/tclNotify.c
+++ b/generic/tclNotify.c
@@ -8,11 +8,12 @@
* tcl*Notify.c files in each platform directory.
*
* Copyright (c) 1995-1997 Sun Microsystems, Inc.
+ * Copyright (c) 1998 by Scriptics Corporation.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclNotify.c,v 1.2 1998/09/14 18:40:01 stanton Exp $
+ * RCS: @(#) $Id: tclNotify.c,v 1.3 1998/10/14 21:12:09 rjohnson Exp $
*/
#include "tclInt.h"
@@ -341,9 +342,12 @@ Tcl_DeleteEvents(proc, clientData)
if ((*proc) (evPtr, clientData) == 1) {
if (notifier.firstEventPtr == evPtr) {
notifier.firstEventPtr = evPtr->nextPtr;
- if (evPtr->nextPtr == (Tcl_Event *) NULL) {
- notifier.lastEventPtr = (Tcl_Event *) NULL;
+ if (evPtr->nextPtr == NULL) {
+ notifier.lastEventPtr = prevPtr;
}
+ if (notifier.markerEventPtr == evPtr) {
+ notifier.markerEventPtr = prevPtr;
+ }
} else {
prevPtr->nextPtr = evPtr->nextPtr;
}