Skip to content

Commit

Permalink
Xi: Use WarpPointerProc hook on XI pointer warping implementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
garnacho authored and whot committed Jun 7, 2017
1 parent ca17f3e commit 95febc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Xi/xiwarppointer.c
Expand Up @@ -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;
Expand Down

0 comments on commit 95febc4

Please sign in to comment.