[PATCH xwayland v3 6/7] Xi: Use WarpPointerProc hook on XI pointer warping implementation

Carlos Garnacho carlosg at gnome.org
Sun May 28 13:56:21 UTC 2017


Just like we do with XWarpPointer's.

Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 Xi/xiwarppointer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c
index 9c2aa3318..955fdb965 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.13.0



More information about the xorg-devel mailing list