修复分屏条窗口退出时focus改变的问题

Signed-off-by: xingyanan <xingyanan2@huawei.com>
Change-Id: Ie6effd7e8765a18c14739cff9f91d542c3bc7735
This commit is contained in:
xingyanan
2022-03-09 14:50:28 +08:00
parent c94b3e249b
commit 3b6a8b253a
+4 -1
View File
@@ -314,7 +314,10 @@ void WindowRoot::UpdateFocusWindowWithWindowRemoved(const sptr<WindowNode>& node
WLOGFE("window is invalid");
return;
}
if (node->GetWindowType() == WindowType::WINDOW_TYPE_DOCK_SLICE) {
WLOGFI("window is divider, do not get next focus window.");
return;
}
uint32_t windowId = node->GetWindowId();
uint32_t focusedWindowId = container->GetFocusWindow();
if (WindowHelper::IsMainWindow(node->GetWindowType())) {