aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/ungrdevb.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/ungrdevb.c')
-rw-r--r--xorg-server/Xi/ungrdevb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/Xi/ungrdevb.c b/xorg-server/Xi/ungrdevb.c
index 590699f05..d1aef5f13 100644
--- a/xorg-server/Xi/ungrdevb.c
+++ b/xorg-server/Xi/ungrdevb.c
@@ -120,7 +120,7 @@ ProcXUngrabDeviceButton(ClientPtr client)
if (mdev->key == NULL)
return BadMatch;
} else
- mdev = inputInfo.keyboard;
+ mdev = PickKeyboard(client);
rc = dixLookupWindow(&pWin, stuff->grabWindow, client, DixSetAttrAccess);
if (rc != Success)