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

Peter Hutterer peter.hutterer at who-t.net
Sun Nov 20 01:29:24 UTC 2016


On Sat, Nov 12, 2016 at 05:25:21PM +0100, Carlos Garnacho wrote:
> 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>

Cheers,
   Peter

> ---
>  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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list