[PATCH] unhide cursor if pos_x is negative

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From e1cb184f71e698509c5ae50c20c687130325da52 Mon Sep 17 00:00:00 2001
From: Qi Zhou <atmgnd@xxxxxxxxxxx>
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@xxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]