From 8c4215f31ed009e2d25e0c18d68b9c6ada2d535e Mon Sep 17 00:00:00 2001 From: mr-liang2504 Date: Fri, 16 May 2025 16:20:29 +0800 Subject: [PATCH] During the drag and drop process, the hit window will exit the background Signed-off-by: mr-liang2504 Change-Id: I018efc51c5ea802b7e8c74aedc88b889cf1ef108 --- service/window_manager/src/input_windows_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/window_manager/src/input_windows_manager.cpp b/service/window_manager/src/input_windows_manager.cpp index eb67ac32b8..48f9ca1e2f 100644 --- a/service/window_manager/src/input_windows_manager.cpp +++ b/service/window_manager/src/input_windows_manager.cpp @@ -421,7 +421,8 @@ int32_t InputWindowsManager::GetClientFd(std::shared_ptr pointerEv IPointerDrawingManager::GetInstance()->DrawPointerStyle(dragPointerStyle_); } MMI_HILOG_DISPATCHD("window info is null, pointerAction:%{public}d", pointerEvent->GetPointerAction()); - if (pointerEvent->GetPointerAction() == PointerEvent::POINTER_ACTION_LEAVE_WINDOW) { + if (pointerEvent->GetPointerAction() == PointerEvent::POINTER_ACTION_LEAVE_WINDOW || + pointerEvent->GetPointerAction() == PointerEvent::POINTER_ACTION_PULL_OUT_WINDOW) { windowInfo = &lastWindowInfo_; } } -- Gitee