summaryrefslogtreecommitdiff
path: root/Xi/xiquerypointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/xiquerypointer.c')
-rw-r--r--Xi/xiquerypointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xiquerypointer.c b/Xi/xiquerypointer.c
index 9e05eff30..d01a81394 100644
--- a/Xi/xiquerypointer.c
+++ b/Xi/xiquerypointer.c
@@ -109,7 +109,7 @@ ProcXIQueryPointer(ClientPtr client)
MaybeStopHint(pDev, client);
if (IsMaster(pDev))
- kbd = GetPairedDevice(pDev);
+ kbd = GetMaster(pDev, MASTER_KEYBOARD);
else
kbd = (pDev->key) ? pDev : NULL;