Add NSModalPanelRunLoopMode and NSEventTrackingRunLoopMode as runloop common modes

This commit is contained in:
Lubos Dolezel 2020-02-08 19:44:43 +01:00
parent 255b78624f
commit a445289f3b

View File

@ -1361,6 +1361,9 @@ int NSApplicationMain(int argc, const char *argv[]) {
[[NSUserDefaults standardUserDefaults] setObject:((argc == 1) ? [arguments lastObject] : arguments) forKey:@"NSOpen"];
}
CFRunLoopAddCommonMode(CFRunLoopGetCurrent(), NSModalPanelRunLoopMode);
CFRunLoopAddCommonMode(CFRunLoopGetCurrent(), NSEventTrackingRunLoopMode);
[NSClassFromString(@"Win32RunningCopyPipe") performSelector:@selector(startRunningCopyPipe)];
if(class==Nil)