From 31934d755c9cacdec28bc38fc45c6548cd097d7a Mon Sep 17 00:00:00 2001 From: z-hf Date: Thu, 21 Mar 2024 01:11:19 +0000 Subject: [PATCH] touchItemDownInfos_ Signed-off-by: z-hf Change-Id: I2f73904b5e1959b33bc14deb2b1110c2bce282c0 --- .../src/input_windows_manager.cpp | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/service/window_manager/src/input_windows_manager.cpp b/service/window_manager/src/input_windows_manager.cpp index e76adfab1c..329210222e 100644 --- a/service/window_manager/src/input_windows_manager.cpp +++ b/service/window_manager/src/input_windows_manager.cpp @@ -1920,8 +1920,11 @@ int32_t InputWindowsManager::UpdateTouchScreenTarget(std::shared_ptrGetPointerAction() == PointerEvent::POINTER_ACTION_DOWN) { - MMI_HILOGE("The touchWindow is nullptr, logicalX:%{public}d, logicalY:%{public}d", - logicalX, logicalY); + MMI_HILOGE("The touchWindow is nullptr, logicalX:%{public}d, logicalY:%{public}d, pointerId:%{public}d", + logicalX, logicalY, pointerId); + for (const auto &item : touchItemDownInfos_) { + MMI_HILOGD("pointerId:%{public}d, touchWindow:%{public}d", item.first, item.second.window.id); + } return RET_ERR; } touchWindow = &it->second.window; @@ -1990,11 +1993,11 @@ int32_t InputWindowsManager::UpdateTouchScreenTarget(std::shared_ptrDumpPointerAction(), touchWindow->pid, - touchWindow->id, displayGroupInfo_.focusWindowId, pointerEvent->GetId(), logicalX, logicalY, physicalX, - physicalY, windowX, windowY, touchWindow->area.width, touchWindow->area.height, touchWindow->area.x, - touchWindow->area.y, touchWindow->flags, displayId, pointerEvent->GetTargetWindowId(), - pointerEvent->GetAgentWindowId(), touchWindow->zOrder); + "AgentWindowId:%{public}d,zOrder:%{public}f,pointerId:%{public}d", pointerEvent->DumpPointerAction(), + touchWindow->pid, touchWindow->id, displayGroupInfo_.focusWindowId, pointerEvent->GetId(), logicalX, + logicalY, physicalX, physicalY, windowX, windowY, touchWindow->area.width, touchWindow->area.height, + touchWindow->area.x, touchWindow->area.y, touchWindow->flags, displayId, + pointerEvent->GetTargetWindowId(), pointerEvent->GetAgentWindowId(), touchWindow->zOrder, pointerId); if (IsNeedDrawPointer(pointerItem)) { if (!IPointerDrawingManager::GetInstance()->GetMouseDisplayState()) { @@ -2027,6 +2030,10 @@ int32_t InputWindowsManager::UpdateTouchScreenTarget(std::shared_ptrid); + for (const auto &item : touchItemDownInfos_) { + MMI_HILOGD("pointerId:%{public}d, touchWindow:%{public}d", item.first, item.second.window.id); + } } if (pointerEvent->GetPointerAction() == PointerEvent::POINTER_ACTION_PULL_UP) { MMI_HILOGD("Clear extra data"); -- Gitee