summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2021-06-03 13:58:47 (GMT)
committerculler <culler>2021-06-03 13:58:47 (GMT)
commita7112ed100a56d89151f286c98c232c4e53ce8ff (patch)
tree7a23f1dc3415e24935fafcb5733eaeb7c3251671 /macosx
parent24ff36afc315a7c70c061bdc235bc26796f7ed90 (diff)
parent040d57a2dda26eab4fd6c98d04e1a191763bd5db (diff)
downloadtk-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.c4
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];
}
}
}