fix: keep remote workspace geometry owned by FCP
这个提交包含在:
1 父节点
385fb47f14
当前提交
9ba6eeb00a
2 个文件已更改
+7
-2
没有与搜索条件相匹配的文件
@@ -153,7 +153,6 @@ static BOOL DYWorkspaceEnabled(DYUniforms u,NSString *type){if([type isEqual:@"b
|
||||
[_root removeFromSuperview];_root.frame=parent.bounds;_root.autoresizingMask=NSViewWidthSizable|NSViewHeightSizable;[parent addSubview:_root];_visible=YES;_root.hidden=NO;[self refreshToolWorkspace:nil];[self pageChanged:nil];[self parentChanged:nil];
|
||||
DYWorkspaceLifetime *token=_lifetime;NSUInteger session=_session;dispatch_async(dispatch_get_main_queue(),^{DYColorWorkspace *owner=token.owner;if(!owner||owner->_closed||owner->_session!=session)return;NSWindow *window=owner->_root.window;
|
||||
if(window!=owner->_presentationWindow){if(owner->_presentationWindow)[NSNotificationCenter.defaultCenter removeObserver:owner name:NSWindowWillCloseNotification object:owner->_presentationWindow];[owner->_presentationWindow release];owner->_presentationWindow=[window retain];if(window)[NSNotificationCenter.defaultCenter addObserver:owner selector:@selector(remoteClosed:) name:NSWindowWillCloseNotification object:window];}
|
||||
if(window.visible){NSRect screen=(window.screen?:NSScreen.mainScreen).visibleFrame;window.contentMinSize=NSMakeSize(720,300);if(![window setFrameUsingName:@"DayuColorWorkspace"]){CGFloat width=MIN(1280,screen.size.width*.76),height=MIN(380,screen.size.height*.32);NSRect content=NSMakeRect(NSMaxX(screen)-width-12,NSMinY(screen)+24,width,MAX(300,height));[window setFrame:[window frameRectForContentRect:content]display:YES];}[window setFrameAutosaveName:@"DayuColorWorkspace"];}
|
||||
[owner parentChanged:nil];
|
||||
});
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户