From 84bfd232064af707318506818d19de0f57fc45bc Mon Sep 17 00:00:00 2001 From: jiangwenyu Date: Thu, 14 Sep 2023 13:15:29 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9wayland=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E7=9A=84=E9=BC=A0=E6=A0=87=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=9A=E7=9B=B8=E5=AF=B9=E4=BA=8E=E7=AA=97=E5=8F=A3=E5=B7=A6?= =?UTF-8?q?=E4=B8=8A=E8=A7=92=E7=9A=84=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangwenyu --- wayland_adapter/framework/core/wayland_surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wayland_adapter/framework/core/wayland_surface.cpp b/wayland_adapter/framework/core/wayland_surface.cpp index 5b8de8e..1192542 100644 --- a/wayland_adapter/framework/core/wayland_surface.cpp +++ b/wayland_adapter/framework/core/wayland_surface.cpp @@ -127,7 +127,7 @@ bool InputEventConsumer::OnInputEvent(const std::shared_ptrGetPointerAction() == OHOS::MMI::PointerEvent::POINTER_ACTION_ENTER_WINDOW) { - pointer->OnPointerEnter(pointerItem.GetDisplayX(), pointerItem.GetDisplayY(), wlSurface_->WlResource()); + pointer->OnPointerEnter(pointerItem.GetWindowX(), pointerItem.GetWindowY(), wlSurface_->WlResource()); keyboard->OnKeyboardEnter(wlSurface_->WlResource()); } else if (pointerEvent->GetPointerAction() == OHOS::MMI::PointerEvent::POINTER_ACTION_LEAVE_WINDOW) { pointer->OnPointerLeave(wlSurface_->WlResource()); @@ -140,7 +140,7 @@ bool InputEventConsumer::OnInputEvent(const std::shared_ptrGetPointerAction() == OHOS::MMI::PointerEvent::POINTER_ACTION_MOVE) { pointer->OnPointerMotionAbsolute( - pointerEvent->GetActionTime(), pointerItem.GetDisplayX(), pointerItem.GetDisplayY()); + pointerEvent->GetActionTime(), pointerItem.GetWindowX(), pointerItem.GetWindowY()); } return true; } -- Gitee