From 64a9d73b103d19ecee43963a9d66cce311b95c21 Mon Sep 17 00:00:00 2001 From: qi zhou Date: Tue, 6 Sep 2022 05:02:57 +0000 Subject: Unhide cursor if pos_x is negative It is valid if position of cursor is negative(not hotspot coordinates). for example: precision section, resize, move, north east arrow... Signed-off-by: Qi Zhou Acked-by: Frediano Ziglio --- qxldod/QxlDod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index 341518e..f498115 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -4920,7 +4920,7 @@ NTSTATUS QxlDevice::SetPointerPosition(_In_ CONST DXGKARG_SETPOINTERPOSITION* pS return STATUS_INSUFFICIENT_RESOURCES; } - if (pSetPointerPosition->X < 0 || !pSetPointerPosition->Flags.Visible) { + if (!pSetPointerPosition->Flags.Visible) { cursor_cmd->type = QXL_CURSOR_HIDE; } else { cursor_cmd->type = QXL_CURSOR_MOVE; -- cgit v1.2.3