diff options
author | culler <culler> | 2021-06-03 13:58:47 (GMT) |
---|---|---|
committer | culler <culler> | 2021-06-03 13:58:47 (GMT) |
commit | a7112ed100a56d89151f286c98c232c4e53ce8ff (patch) | |
tree | 7a23f1dc3415e24935fafcb5733eaeb7c3251671 /macosx | |
parent | 24ff36afc315a7c70c061bdc235bc26796f7ed90 (diff) | |
parent | 040d57a2dda26eab4fd6c98d04e1a191763bd5db (diff) | |
download | tk-a7112ed100a56d89151f286c98c232c4e53ce8ff.zip tk-a7112ed100a56d89151f286c98c232c4e53ce8ff.tar.gz tk-a7112ed100a56d89151f286c98c232c4e53ce8ff.tar.bz2 |
Fix [8ecc3eaf5c]: make sure that the key window is moved to the front when an app is activated by Mission Control.
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]; } } } |