Xi: return BadDevice for changing device cursors on non-master pointers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-08-20 10:52:52 +10:00
parent ef75301854
commit 65354e5a69

View File

@ -78,6 +78,9 @@ int ProcXIChangeCursor(ClientPtr client)
if (rc != Success)
return rc;
if (!IsMaster(pDev) || !IsPointerDevice(pDev))
return BadDevice;
if (stuff->win != None)
{
rc = dixLookupWindow(&pWin, stuff->win, client, DixSetAttrAccess);