[PATCH 1/5] Xi: return the bad device ID if a passive grab fails with BadDevice.
Jeremy Huddleston
jeremyhu at apple.com
Thu Apr 14 20:33:20 PDT 2011
Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
On Apr 14, 2011, at 8:20 PM, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> Xi/xipassivegrab.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c
> index 3319ef9..22f905e 100644
> --- a/Xi/xipassivegrab.c
> +++ b/Xi/xipassivegrab.c
> @@ -99,7 +99,10 @@ ProcXIPassiveGrabDevice(ClientPtr client)
> {
> ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess);
> if (ret != Success)
> + {
> + client->errorValue = stuff->deviceid;
> return ret;
> + }
> }
>
> if (stuff->grab_type != XIGrabtypeButton &&
> --
> 1.7.4.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list