summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index dceb051..379e25c 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -124,7 +124,7 @@ static int ModifierCharWidth(Tk_Font tkfont);
* the menu was posted. For example, opening a menu during the Rube Goldberg
* demo would cause the animation to stop. This was also the case for
* menubuttons.
- *
+ *
* The TKBackground object below works around this problem, and allows a Tk
* event loop to run while a menu is open. It is a subclass of NSThread which
* inserts requests to call [NSApp _runBackgroundLoop] onto the queue
@@ -142,25 +142,25 @@ static int ModifierCharWidth(Tk_Font tkfont);
NSArray *modeArray = [NSArray arrayWithObjects: NSEventTrackingRunLoopMode,
nil];
while(1) {
-
+
/*
* Queue a request to process Tk events during event tracking.
*/
-
- [NSApp performSelectorOnMainThread:@selector(_runBackgroundLoop)
+
+ [NSApp performSelectorOnMainThread:@selector(_runBackgroundLoop)
withObject:nil
- waitUntilDone:true
+ waitUntilDone:true
modes:modeArray];
if (self.cancelled) {
[NSThread exit];
}
-
+
/*
* Allow the tracked events to be processed too.
*/
[NSThread sleepForTimeInterval:0.001];
- }
+ }
}
@end