aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index d5a3cef2..0a59287c 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -562,6 +562,16 @@
}
}
+ while(1) {
+ NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask
+ untilDate:[NSDate distantPast]
+ inMode:NSDefaultRunLoopMode
+ dequeue:YES];
+ // if(!event) continue;
+ [NSApp sendEvent:event];
+ if(![processDocument isWorking]) break;
+ usleep(1000);
+ }
if(processDocument && command && [command isEqualToString:@"passToDoc"]) {
NSMutableDictionary *cmdDict = [NSMutableDictionary dictionary];