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:
parent
ef75301854
commit
65354e5a69
|
@ -78,6 +78,9 @@ int ProcXIChangeCursor(ClientPtr client)
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
if (!IsMaster(pDev) || !IsPointerDevice(pDev))
|
||||||
|
return BadDevice;
|
||||||
|
|
||||||
if (stuff->win != None)
|
if (stuff->win != None)
|
||||||
{
|
{
|
||||||
rc = dixLookupWindow(&pWin, stuff->win, client, DixSetAttrAccess);
|
rc = dixLookupWindow(&pWin, stuff->win, client, DixSetAttrAccess);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user