summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXNotify.c
diff options
context:
space:
mode:
authorculler <culler>2019-10-11 20:14:40 (GMT)
committerculler <culler>2019-10-11 20:14:40 (GMT)
commit09bb06b273610a411d611b606b08cb6b6b30eec7 (patch)
treec343ed5a57457d05a7017d6147c9933dd012b21b /macosx/tkMacOSXNotify.c
parent624d527a6a5bb7228d19aa80b8307151c47c2692 (diff)
downloadtk-09bb06b273610a411d611b606b08cb6b6b30eec7.zip
tk-09bb06b273610a411d611b606b08cb6b6b30eec7.tar.gz
tk-09bb06b273610a411d611b606b08cb6b6b30eec7.tar.bz2
Use vwait instead of after in canvImg.test. On macOS protect against exceptions
when periodic events are scheduled.
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r--macosx/tkMacOSXNotify.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index a4a87c6..afee942 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -311,17 +311,16 @@ TkMacOSXEventsSetupProc(
if (currentEvent) {
if (currentEvent.type > 0) {
Tcl_SetMaxBlockTime(&zeroBlockTime);
- if (havePeriodicEvents) {
- [NSEvent stopPeriodicEvents];
- havePeriodicEvents = NO;
- }
+ [NSEvent stopPeriodicEvents];
+ havePeriodicEvents = NO;
}
} else if (!havePeriodicEvents){
/*
* When the user is not generating events we schedule a "hearbeat"
* event to fire every 0.1 seconds. This helps to make the vwait
- * command more responsive when there is no user input.
+ * command more responsive when there is no user input, e.g. when
+ * running the test suite.
*/
havePeriodicEvents = YES;