Xi: return BadDevice for master kbds and attached slaves in XIWarpPointer

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-09-03 10:00:00 +10:00
parent 8939ad2b2a
commit 61a6e1f074

View File

@ -97,6 +97,13 @@ ProcXIWarpPointer(ClientPtr client)
return rc; return rc;
} }
if ((!IsMaster(pDev) && pDev->u.master) ||
(IsMaster(pDev) && !IsPointerDevice(pDev)))
{
client->errorValue = stuff->deviceid;
return BadDevice;
}
if (stuff->dst_win != None) if (stuff->dst_win != None)
{ {
rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess); rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);