diff options
author | culler <culler> | 2021-06-01 01:48:04 (GMT) |
---|---|---|
committer | culler <culler> | 2021-06-01 01:48:04 (GMT) |
commit | 040d57a2dda26eab4fd6c98d04e1a191763bd5db (patch) | |
tree | 92727f1d98a6a225107d38f52766580f12c9d4eb /macosx | |
parent | 5f715cdb82eb9359f525faddad8ca97c8831378f (diff) | |
download | tk-040d57a2dda26eab4fd6c98d04e1a191763bd5db.zip tk-040d57a2dda26eab4fd6c98d04e1a191763bd5db.tar.gz tk-040d57a2dda26eab4fd6c98d04e1a191763bd5db.tar.bz2 |
Fix [8ecc3eaf5c]: Activating an app with Mission Control may not raise the app's key window.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 5e8be7d..410c4b5 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -321,7 +321,7 @@ static void RefocusGrabWindow(void *data) { * If one of the windows is the grab window for its display we focus * it. This is done as at idle, in case the app was reactivated by * clicking a different window. In that case we need to wait until the - * mouse event has been processed before focussing the grab window. + * mouse event has been processed before focusing the grab window. */ for (NSWindow *win in [NSApp windows]) { @@ -334,6 +334,8 @@ static void RefocusGrabWindow(void *data) { } if (winPtr->dispPtr->grabWinPtr == winPtr) { Tcl_DoWhenIdle(RefocusGrabWindow, winPtr); + } else { + [[self keyWindow] orderFront: self]; } } } |