From 97dd7f1c25ad84181119f1d515a649f6770f7473 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 24 Feb 2024 14:09:14 +0100 Subject: [PATCH] Properly propagate CursorWarpedTo() 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unix/xserver/hw/vnc/vncHooks.c b/unix/xserver/hw/vnc/vncHooks.c index 1ad14fc3..3838c10d 100644 --- a/unix/xserver/hw/vnc/vncHooks.c +++ b/unix/xserver/hw/vnc/vncHooks.c @@ -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 -- 2.39.5