diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c index 3319ef913..22f905e8f 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 &&