From: Pierre Ossman Date: Sat, 24 Feb 2024 13:09:14 +0000 (+0100) Subject: Properly propagate CursorWarpedTo() X-Git-Tag: v1.13.90~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97dd7f1c25ad84181119f1d515a649f6770f7473;p=tigervnc.git 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. --- 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