summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2021-12-20 16:09:22 (GMT)
committermarc_culler <marc.culler@gmail.com>2021-12-20 16:09:22 (GMT)
commit32ad249136c01232bce166b33015f783f613bca2 (patch)
tree95b5e1f270973d636dd92486fdf464a98055c88e
parentca555898f2505f32064a101ce8e2dcf4a06198e1 (diff)
downloadtk-32ad249136c01232bce166b33015f783f613bca2.zip
tk-32ad249136c01232bce166b33015f783f613bca2.tar.gz
tk-32ad249136c01232bce166b33015f783f613bca2.tar.bz2
Remove the isDead property from TKWindow since it is no longer needed.
-rw-r--r--macosx/tkMacOSXMouseEvent.c8
-rw-r--r--macosx/tkMacOSXPrivate.h2
-rw-r--r--macosx/tkMacOSXWm.c4
3 files changed, 0 insertions, 14 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c
index 6457890..4ed954d 100644
--- a/macosx/tkMacOSXMouseEvent.c
+++ b/macosx/tkMacOSXMouseEvent.c
@@ -122,14 +122,6 @@ enum {
if (!isTestingEvent && !isMotionEvent) {
return theEvent;
}
- } else if ([(TKWindow *) eventWindow isDead]) {
- if ([eventWindow isKeyWindow]) {
- [eventWindow resignKey];
- }
- [NSApp setTkDragTarget: nil];
- target = TkMacOSXGetTkWindow([NSApp keyWindow]);
- [NSApp setTkEventTarget: target];
- [NSApp setTkDragTarget: nil];
} else if (!NSPointInRect(viewLocation, [contentView bounds])) {
isOutside = YES;
}
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index c7a547e..3b03139 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -458,11 +458,9 @@ VISIBILITY_HIDDEN
#ifdef __i386__
/* The Objective C runtime used on i386 requires this. */
Window _tkWindow;
- Bool _isDead;
#endif
}
@property Window tkWindow;
-@property Bool isDead;
@end
@interface TKWindow(TKWm)
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index eaf19e9..be50f96 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -363,7 +363,6 @@ static void RemoveTransient(TkWindow *winPtr);
@implementation TKWindow: NSWindow
@synthesize tkWindow = _tkWindow;
-@synthesize isDead = _isDead;
@end
#pragma mark TKWindow(TKWm)
@@ -1052,9 +1051,6 @@ TkWmDeadWindow(
}
deadNSWindow = (TKWindow *)wmPtr->window;
- if ([deadNSWindow respondsToSelector:@selector(setIsDead)]) {
- [deadNSWindow setIsDead:YES];
- }
/*
* Remove references to the Tk window from the mouse event processing