summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-05-28 15:56:21 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-25 15:34:10 -0400
commitfaeee7646695261e60ea03d934a0c496a429f31b (patch)
treed8cb8fe7fec555fec2b5920a9ec3a06232bf69f4
parentc6df0d03de22b57d5faa77b19ac1ec0311f4f3a5 (diff)
Xi: Use WarpPointerProc hook on XI pointer warping implementation
Just like we do with XWarpPointer's. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 95febc42cadf392a888104ad6d5cf4f34fdde7d5)
-rw-r--r--Xi/xiwarppointer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c
index 780758a9e..8426443fa 100644
--- a/Xi/xiwarppointer.c
+++ b/Xi/xiwarppointer.c
@@ -186,6 +186,10 @@ ProcXIWarpPointer(ClientPtr client)
pDev->last.valuators[1] = y;
miPointerUpdateSprite(pDev);
+ if (*newScreen->CursorWarpedTo)
+ (*newScreen->CursorWarpedTo) (pDev, newScreen, client,
+ dest, pSprite, x, y);
+
/* FIXME: XWarpPointer is supposed to generate an event. It doesn't do it
here though. */
return Success;