diff options
| author | culler <culler> | 2025-03-13 13:43:52 (GMT) |
|---|---|---|
| committer | culler <culler> | 2025-03-13 13:43:52 (GMT) |
| commit | 2d24c82f4c4aedc39acf0571c817b0a5a42f5343 (patch) | |
| tree | a4acaf6ea0edf6f9ec674902149fb5a2ad8360d1 | |
| parent | b661de17978833dec2413fdaf013305d7462ed01 (diff) | |
| download | tk-core-aqua_key_windows.zip tk-core-aqua_key_windows.tar.gz tk-core-aqua_key_windows.tar.bz2 | |
Check the TK_ALREADY_DEAD flag before making a window become the key window.core-aqua_key_windows
| -rw-r--r-- | macosx/tkMacOSXWm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 1990df2..d6a238a 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -852,7 +852,9 @@ void TkMacOSXAssignNewKeyWindow( WmInfo *wmPtr; BOOL isOnScreen; winPtr = TkMacOSXGetTkWindow(w); - if (!winPtr || !winPtr->wmInfoPtr) { + if (!winPtr + || !winPtr->wmInfoPtr + || (winPtr->flags & TK_ALREADY_DEAD)) { continue; } wmPtr = winPtr->wmInfoPtr; |
