summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2019-01-30 17:04:23 (GMT)
committerculler <culler>2019-01-30 17:04:23 (GMT)
commitdcf8f65baa1a666ad952e8690b43af762eaaaef1 (patch)
treecd708d4f948dca07fe18f292dace95fc88b7e5e3 /macosx
parent97d125a390ac2ecb00955aa7bd992f425a7b3aba (diff)
downloadtk-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.c2
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;