diff options
Diffstat (limited to 'macosx/tkMacOSXWm.c')
| -rw-r--r-- | macosx/tkMacOSXWm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 4ddac2bbc..d5a38fb 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -1311,9 +1311,6 @@ TkWmDeadWindow( * preventing zombies is to set the key window to nil. */ - TkMacOSXAssignNewKeyWindow(Tk_Interp((Tk_Window) winPtr), - deadNSWindow); - /* * Prevent zombies on systems with a TouchBar. */ @@ -1322,6 +1319,13 @@ TkWmDeadWindow( [NSApp _setKeyWindow:nil]; [NSApp _setMainWindow:nil]; } + + /* + * Find a new keyWindow. It will be assinged as the new + * TkEventTarget when [NSApp WindowActivation] is called.. + */ + + TkMacOSXAssignNewKeyWindow(Tk_Interp((Tk_Window) winPtr), deadNSWindow); /* * Avoid redrawing the view after it is released. |
