xfree86: pass in the XKB event processing proc instead of the XI one.

We need to pass ProcessPointerEvent or ProcessKeyboardEvent to
XkbSetExtension, otherwise we lose the xkb layer.
This commit is contained in:
Peter Hutterer 2007-09-26 18:01:17 +09:30
parent 27bc1a8fef
commit e2cb851566

View File

@ -205,7 +205,7 @@ xf86ActivateDevice(LocalDevicePtr local)
RegisterOtherDevice(dev);
if (!noXkbExtension)
XkbSetExtension(dev, ProcessOtherEvent);
XkbSetExtension(dev, (DeviceIsPointerType(dev)) ? ProcessPointerEvent : ProcessKeyboardEvent);
if (serverGeneration == 1)
xf86Msg(X_INFO, "XINPUT: Adding extended input device \"%s\" (type: %s)\n",