diff options
Diffstat (limited to 'xorg-server/Xi/setmode.c')
-rw-r--r-- | xorg-server/Xi/setmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/Xi/setmode.c b/xorg-server/Xi/setmode.c index 8b6003ad0..2badb5161 100644 --- a/xorg-server/Xi/setmode.c +++ b/xorg-server/Xi/setmode.c @@ -106,7 +106,7 @@ ProcXSetDeviceMode(ClientPtr client) return rc; if (dev->valuator == NULL) return BadMatch; - 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); |