From ed0139d2a0a97c9bc7beeac158680e51494604e3 Mon Sep 17 00:00:00 2001 From: LHHHYYY Date: Fri, 22 Aug 2025 15:47:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=B1=82=E7=BA=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: LHHHYYY --- wm/src/window_scene_session_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wm/src/window_scene_session_impl.cpp b/wm/src/window_scene_session_impl.cpp index c958e4bc61..65ada4a0ee 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; } -- Gitee