summaryrefslogtreecommitdiff
path: root/hw/xgl/egl/kinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xgl/egl/kinput.c')
-rw-r--r--hw/xgl/egl/kinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xgl/egl/kinput.c b/hw/xgl/egl/kinput.c
index 981cffcfa..774e00eb5 100644
--- a/hw/xgl/egl/kinput.c
+++ b/hw/xgl/egl/kinput.c
@@ -439,7 +439,7 @@ KdKeybdProc(DeviceIntPtr pDevice, int onoff)
switch (onoff)
{
case DEVICE_INIT:
- if (pDev != LookupKeyboardDevice())
+ if (pDev != (DevicePtr)inputInfo.keyboard)
{
return !Success;
}