From b147c37c4cf62db54f104b9883619a8c7f07ec4f Mon Sep 17 00:00:00 2001 From: zhaoqi209 <18872749497@163.com> Date: Sat, 23 Aug 2025 17:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaoqi209 <18872749497@163.com> --- wm/src/window_session_impl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wm/src/window_session_impl.cpp b/wm/src/window_session_impl.cpp index 3cd57d19a7..adf7cd4925 100644 --- a/wm/src/window_session_impl.cpp +++ b/wm/src/window_session_impl.cpp @@ -2338,7 +2338,8 @@ void WindowSessionImpl::UpdateDecorEnableToAce(bool isDecorEnable) if (windowSystemConfig_.freeMultiWindowSupport_) { auto isSubWindow = WindowHelper::IsSubWindow(GetType()); decorVisible = decorVisible && (windowSystemConfig_.freeMultiWindowEnable_ || - (property_->GetIsPcAppInPad() && isSubWindow)); + (property_->GetIsPcAppInPad() && isSubWindow)) && + !(mode == WindowMode::WINDOW_MODE_FULLSCREEN && property_->GetCompatibleModeProperty()); } uiContent->UpdateDecorVisible(decorVisible, isDecorEnable); return; @@ -2366,7 +2367,8 @@ void WindowSessionImpl::UpdateDecorEnable(bool needNotify, WindowMode mode) if (windowSystemConfig_.freeMultiWindowSupport_) { auto isSubWindow = WindowHelper::IsSubWindow(GetType()); decorVisible = decorVisible && (windowSystemConfig_.freeMultiWindowEnable_ || - (property_->GetIsPcAppInPad() && isSubWindow)); + (property_->GetIsPcAppInPad() && isSubWindow)) && + !(mode == WindowMode::WINDOW_MODE_FULLSCREEN && property_->GetCompatibleModeProperty()); } if (GetWindowMode() == WindowMode::WINDOW_MODE_FULLSCREEN && property_->IsDecorFullscreenDisabled()) { decorVisible = false; -- Gitee