diff options
author | culler <culler> | 2019-01-30 17:04:23 (GMT) |
---|---|---|
committer | culler <culler> | 2019-01-30 17:04:23 (GMT) |
commit | dcf8f65baa1a666ad952e8690b43af762eaaaef1 (patch) | |
tree | cd708d4f948dca07fe18f292dace95fc88b7e5e3 /macosx | |
parent | 97d125a390ac2ecb00955aa7bd992f425a7b3aba (diff) | |
download | tk-dcf8f65baa1a666ad952e8690b43af762eaaaef1.zip tk-dcf8f65baa1a666ad952e8690b43af762eaaaef1.tar.gz tk-dcf8f65baa1a666ad952e8690b43af762eaaaef1.tar.bz2 |
Tweak the last commit: generate FocusOut events when the NSApp is deactivated.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index bed4429..c39f62b 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -523,7 +523,7 @@ GenerateActivateEvents( int activeFlag) { TkGenerateActivateEvents(winPtr, activeFlag); - if (activeFlag) { + if (activeFlag || ![NSApp isActive]) { TkMacOSXGenerateFocusEvent(winPtr, activeFlag); } return true; |