diff options
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/xichangecursor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/xichangecursor.c b/Xi/xichangecursor.c index dc33d70a1..ea5bdeb93 100644 --- a/Xi/xichangecursor.c +++ b/Xi/xichangecursor.c @@ -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); |