summaryrefslogtreecommitdiff
path: root/Xi/chgdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/chgdctl.c')
-rw-r--r--Xi/chgdctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/chgdctl.c b/Xi/chgdctl.c
index 89410d68f..26b79f6dc 100644
--- a/Xi/chgdctl.c
+++ b/Xi/chgdctl.c
@@ -167,7 +167,7 @@ ProcXChangeDeviceControl(ClientPtr client)
ret = BadMatch;
goto out;
}
- if ((dev->grab) && !SameClient(dev->grab, client)) {
+ if ((dev->deviceGrab.grab) && !SameClient(dev->deviceGrab.grab, client)) {
rep.status = AlreadyGrabbed;
ret = Success;
goto out;