diff options
author | kevin_walzer <kevin_walzer@noemail.net> | 2016-05-18 02:24:36 (GMT) |
---|---|---|
committer | kevin_walzer <kevin_walzer@noemail.net> | 2016-05-18 02:24:36 (GMT) |
commit | b37f73d656df09be91e592d18f93451f7d00ca18 (patch) | |
tree | 72b0de41553467b02000092203bf06670f55c40d | |
parent | e7dd52f22a5d33db9135171f69db95e52ade7355 (diff) | |
download | tk-b37f73d656df09be91e592d18f93451f7d00ca18.zip tk-b37f73d656df09be91e592d18f93451f7d00ca18.tar.gz tk-b37f73d656df09be91e592d18f93451f7d00ca18.tar.bz2 |
Tweak to allow Tk to build on 10.5; thanks to Marc Culler for patch
FossilOrigin-Name: 167c75a529847a57fd85a0b5fbd1a7c3c1602204
-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) |