diff options
author | Kevin Walzer <kw@codebykevin.com> | 2016-05-18 02:26:41 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2016-05-18 02:26:41 (GMT) |
commit | 51c67e374ef37b064bf13cda750744eb7b0d41fc (patch) | |
tree | d90c6d67a07825ca56ec4bbcae56251cb4c9e73d | |
parent | fbfb7ab3f964d449a7dd80957998c23fe8c49117 (diff) | |
download | tk-51c67e374ef37b064bf13cda750744eb7b0d41fc.zip tk-51c67e374ef37b064bf13cda750744eb7b0d41fc.tar.gz tk-51c67e374ef37b064bf13cda750744eb7b0d41fc.tar.bz2 |
Tweak to allow Tk to build on 10.5; thanks to Marc Culler for patch
-rw-r--r-- | macosx/tkMacOSXNotify.c | 7 |
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) |