diff --git a/wm/src/window_scene_session_impl.cpp b/wm/src/window_scene_session_impl.cpp index c958e4bc61f39c869b551b159f49b2954378a895..65ada4a0ee08ad16d2192ab986acf51b5aacab7d 100644 --- a/wm/src/window_scene_session_impl.cpp +++ b/wm/src/window_scene_session_impl.cpp @@ -2684,7 +2684,7 @@ WMError WindowSceneSessionImpl::RaiseMainWindowAboveTarget(int32_t targetId) auto targetIter = std::find_if(windowSessionMap_.begin(), windowSessionMap_.end(), [targetId](const auto& windowInfoPair) {return windowInfoPair.second.first == targetId;}); if (targetIter == windowSessionMap_.end()) { - TLOGE(WmsLogTag::WMS_HIERARCHY, "target id invalid or pid inconsistent with source window pid"); + TLOGE(WmsLogTag::WMS_HIERARCHY, "target not found, id invalid or pid inconsistent with source window pid"); return WMError::WM_ERROR_INVALID_WINDOW; } auto targetSessionImpl = targetIter->second.second; @@ -2769,7 +2769,7 @@ WMError WindowSceneSessionImpl::GetSubWindowZLevel(int32_t& zLevel) return WMError::WM_ERROR_DEVICE_NOT_SUPPORT; } - if (!WindowHelper::IsSubWindow(GetType()) || !WindowHelper::IsDialogWindow(GetType())) { + if (!WindowHelper::IsSubWindow(GetType()) && !WindowHelper::IsDialogWindow(GetType())) { TLOGE(WmsLogTag::WMS_HIERARCHY, "must be app sub window!"); return WMError::WM_ERROR_INVALID_CALLING; }