Extension创建的Window不需要设置SurfaceNode的bounds

Signed-off-by: dubj <dubingjian@huawei.com>
Change-Id: Icf3f72d8228281fb3777542adf9a1e8818a610ff
This commit is contained in:
dubj
2022-05-10 21:43:07 +08:00
parent 1d66626cc0
commit 923fb2cc0d
+4
View File
@@ -337,6 +337,10 @@ bool WindowLayoutPolicy::IsFullScreenRecentWindowExist(const std::vector<sptr<Wi
void WindowLayoutPolicy::UpdateSurfaceBounds(const sptr<WindowNode>& node, const Rect& winRect)
{
if (node->GetWindowType() == WindowType::WINDOW_TYPE_APP_COMPONENT) {
WLOGFI("not need to update bounds");
return;
}
if (node->leashWinSurfaceNode_) {
node->leashWinSurfaceNode_->SetBounds(winRect.posX_, winRect.posY_, winRect.width_, winRect.height_);
if (node->startingWinSurfaceNode_) {