diff options
Diffstat (limited to 'Xi/setmode.c')
-rw-r--r-- | Xi/setmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/setmode.c b/Xi/setmode.c index 11feb6d32..ff5a3bcfc 100644 --- a/Xi/setmode.c +++ b/Xi/setmode.c @@ -113,7 +113,7 @@ ProcXSetDeviceMode(register ClientPtr client) SendErrorToClient(client, IReqCode, X_SetDeviceMode, 0, BadMatch); return Success; } - if ((dev->grab) && !SameClient(dev->grab, client)) + if ((dev->deviceGrab.grab) && !SameClient(dev->deviceGrab.grab, client)) rep.status = AlreadyGrabbed; else rep.status = SetDeviceMode(client, dev, stuff->mode); |