summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2016-05-18 02:24:36 (GMT)
committerKevin Walzer <kw@codebykevin.com>2016-05-18 02:24:36 (GMT)
commit1ba8b87f9cc6b6c10782293b76066de8a4aa675f (patch)
tree72b0de41553467b02000092203bf06670f55c40d /macosx
parent7fb5c8f5101ffff084ff8d1f2516a6c65b3abe92 (diff)
downloadtk-1ba8b87f9cc6b6c10782293b76066de8a4aa675f.zip
tk-1ba8b87f9cc6b6c10782293b76066de8a4aa675f.tar.gz
tk-1ba8b87f9cc6b6c10782293b76066de8a4aa675f.tar.bz2
Tweak to allow Tk to build on 10.5; thanks to Marc Culler for patch
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXNotify.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index 1455688..f14e1b8 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -270,10 +270,15 @@ TkMacOSXEventsCheckProc(
inMode:GetRunLoopMode(modalSession)
dequeue:NO];
/* We must not steal any events during LiveResize. */
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
if (testEvent && [[testEvent window] inLiveResize]) {
break;
}
-
+#else
+ if (testEvent && [[[testEvent window] contentView] inLiveResize]) {
+ break;
+ }
+#endif
currentEvent = [NSApp nextEventMatchingMask:NSAnyEventMask
untilDate:[NSDate distantPast]
inMode:GetRunLoopMode(modalSession)