summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2021-12-19 22:01:59 (GMT)
committermarc_culler <marc.culler@gmail.com>2021-12-19 22:01:59 (GMT)
commita95f9f1b08a27165ffce03db777aad7e1660a3b0 (patch)
treee269c188f75f1f32f05460051cd1df6099d9ae0c /macosx/tkMacOSXWm.c
parent225b04b45f1bbb626bbc4df6d2bd8d59848a607f (diff)
downloadtk-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.c2
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];