diff options
author | culler <culler> | 2018-10-22 17:34:08 (GMT) |
---|---|---|
committer | culler <culler> | 2018-10-22 17:34:08 (GMT) |
commit | c706cc9dd2acfd83dab0c2d07679a2f5742ecf76 (patch) | |
tree | 21d278886f76df7879772de82abf43e1eb782e52 /generic | |
parent | cc318f1280b90cae4f3fc825effccc181cb2e41e (diff) | |
download | tk-c706cc9dd2acfd83dab0c2d07679a2f5742ecf76.zip tk-c706cc9dd2acfd83dab0c2d07679a2f5742ecf76.tar.gz tk-c706cc9dd2acfd83dab0c2d07679a2f5742ecf76.tar.bz2 |
Remove the sleep from the button flash command on macOS. This causes a hang
on Mojave and the flash doesn't do anything on a mac anyway.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkButton.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c index fc2c7ec..7760359 100644 --- a/generic/tkButton.c +++ b/generic/tkButton.c @@ -879,7 +879,13 @@ ButtonWidgetObjCmd( Tcl_CancelIdleCall(TkpDisplayButton, butPtr); XFlush(butPtr->display); + #ifndef MAC_OSX_TK + /* + * On the mac you can not sleep in a display proc, and the + * flash command doesn't do anything anyway. + */ Tcl_Sleep(50); + #endif } } break; |