diff options
author | marc_culler <marc.culler@gmail.com> | 2021-12-19 22:01:59 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2021-12-19 22:01:59 (GMT) |
commit | a95f9f1b08a27165ffce03db777aad7e1660a3b0 (patch) | |
tree | e269c188f75f1f32f05460051cd1df6099d9ae0c /macosx/tkMacOSXWm.c | |
parent | 225b04b45f1bbb626bbc4df6d2bd8d59848a607f (diff) | |
download | tk-a95f9f1b08a27165ffce03db777aad7e1660a3b0.zip tk-a95f9f1b08a27165ffce03db777aad7e1660a3b0.tar.gz tk-a95f9f1b08a27165ffce03db777aad7e1660a3b0.tar.bz2 |
Add a property to TKWindow which indicates that the associated Tk window is being destroyed.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index c065d6c..cdfc1a1 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -363,6 +363,7 @@ static void RemoveTransient(TkWindow *winPtr); @implementation TKWindow: NSWindow @synthesize tkWindow = _tkWindow; +@synthesize isDead = _isDead; @end #pragma mark TKWindow(TKWm) @@ -1057,6 +1058,7 @@ TkWmDeadWindow( */ deadNSWindow = (TKWindow *)wmPtr->window; + [deadNSWindow setIsDead:YES]; if (deadNSWindow && !Tk_IsEmbedded(winPtr)) { NSWindow *parent = [deadNSWindow parentWindow]; [deadNSWindow setTkWindow:None]; |