Workaround for 10.11 regression

This commit is contained in:
Allan Odgaard
2015-11-13 15:24:52 +07:00
parent bdcba4d66e
commit 1e10ef8ac2
2 changed files with 16 additions and 4 deletions

View File

@@ -43,12 +43,18 @@ OAK_DEBUG_VAR(HTMLOutputWindow);
- (void)applicationDidActivate:(NSNotification*)notification
{
self.window.collectionBehavior |= NSWindowCollectionBehaviorMoveToActiveSpace;
// Starting with 10.11 behavior must be changed after current event loop cycle <rdar://23587833>
dispatch_async(dispatch_get_main_queue(), ^{
self.window.collectionBehavior |= NSWindowCollectionBehaviorMoveToActiveSpace;
});
}
- (void)applicationDidDeactivate:(NSNotification*)notification
{
self.window.collectionBehavior &= ~NSWindowCollectionBehaviorMoveToActiveSpace;
// Starting with 10.11 behavior must be changed after current event loop cycle <rdar://23587833>
dispatch_async(dispatch_get_main_queue(), ^{
self.window.collectionBehavior &= ~NSWindowCollectionBehaviorMoveToActiveSpace;
});
}
+ (HTMLOutputWindowController*)HTMLOutputWindowWithRunner:(command::runner_ptr const&)aRunner