]> source.dussan.org Git - tigervnc.git/commitdiff
Properly propagate CursorWarpedTo()
authorPierre Ossman <ossman@cendio.se>
Sat, 24 Feb 2024 13:09:14 +0000 (14:09 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 14 Mar 2024 16:41:49 +0000 (17:41 +0100)
Although unlikely, there might be other parts of the X server that are
also interested in this call. Make sure we propagate things on properly.

unix/xserver/hw/vnc/vncHooks.c

index 1ad14fc3f7ed289f60a224cb9752f704cf7fba88..3838c10dab582fe47db411b3e477805c95acbbf2 100644 (file)
@@ -638,7 +638,12 @@ static void vncHooksCursorWarpedTo(DeviceIntPtr pDev,
                                    int x, int y)
 {
   SCREEN_PROLOGUE(pScreen_, CursorWarpedTo);
+
+  if (pScreen->CursorWarpedTo)
+    (*pScreen->CursorWarpedTo) (pDev, pScreen_, pClient, pWindow, pSprite, x, y);
+
   vncSetCursorPos(pScreen->myNum, x, y);
+
   SCREEN_EPILOGUE(CursorWarpedTo);
 }
 #endif