[Spice-devel] [PATCH] unhide cursor if pos_x is negative

qi zhou atmgnd at outlook.com
Tue Sep 6 05:02:57 UTC 2022


>From e1cb184f71e698509c5ae50c20c687130325da52 Mon Sep 17 00:00:00 2001
From: Qi Zhou <atmgnd at outlook.com>
Date: Tue, 6 Sep 2022 12:14:49 +0800
Subject: [PATCH] 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 <atmgnd at outlook.com>
---
 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;
-- 
2.32.0.windows.2



More information about the Spice-devel mailing list