diff options
author | culler <culler> | 2020-08-04 14:47:00 (GMT) |
---|---|---|
committer | culler <culler> | 2020-08-04 14:47:00 (GMT) |
commit | 24bb9dda59ff526f18fee2b721f9cb5edb845297 (patch) | |
tree | 6f824ebac9edab22d8f89b7caee62ee580884eba /macosx/tkMacOSXNotify.c | |
parent | 82fa36590eab7415072e7d56195fca78277676c7 (diff) | |
parent | 6115c6c774ebf6d95e16b18fd3378d691f26722d (diff) | |
download | tk-24bb9dda59ff526f18fee2b721f9cb5edb845297.zip tk-24bb9dda59ff526f18fee2b721f9cb5edb845297.tar.gz tk-24bb9dda59ff526f18fee2b721f9cb5edb845297.tar.bz2 |
Merge 8.6 but remove HITheme and HIBackground colors which are only supported on 32-bit systems
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r-- | macosx/tkMacOSXNotify.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c index 848f7a3..a4f971f 100644 --- a/macosx/tkMacOSXNotify.c +++ b/macosx/tkMacOSXNotify.c @@ -176,6 +176,7 @@ void DebugPrintQueue(void) } } #endif + [super sendEvent:theEvent]; [NSApp tkCheckPasteboard]; @@ -185,6 +186,13 @@ void DebugPrintQueue(void) #endif } + +- (void) _runBackgroundLoop +{ + while(Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_TIMER_EVENTS|TCL_DONT_WAIT)){ + TkMacOSXDrawAllViews(NULL); + } +} @end #pragma mark - @@ -203,15 +211,13 @@ void DebugPrintQueue(void) *---------------------------------------------------------------------- */ -NSString * +static NSString * GetRunLoopMode(NSModalSession modalSession) { NSString *runLoopMode = nil; if (modalSession) { runLoopMode = NSModalPanelRunLoopMode; - } else if (TkpGetCapture()) { - runLoopMode = NSEventTrackingRunLoopMode; } if (!runLoopMode) { runLoopMode = [[NSRunLoop currentRunLoop] currentMode]; |