mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Workaround for 10.11 regression
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user