[PATCH xwayland 6/7] Xi: Use WarpPointerProc hook on XI pointer warping implementation
Carlos Garnacho
carlosg at gnome.org
Sat Nov 12 16:25:21 UTC 2016
Just like we do with XWarpPointer's.
Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
---
Xi/xiwarppointer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c
index 780758a..8426443 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;
--
2.9.3
More information about the xorg-devel
mailing list