xfree86: wrap keyboard devices for XKB.
Call ProcessOtherEvents first, then for all keyboard devices let them be wrapped by XKB. This way all XI events will go through XKB. Note that the VCK is still not wrapped, so core events will bypass XKB. (cherry picked from commitd627061b48
) (cherry picked from commit8ead41388e
)
This commit is contained in:
parent
e26e93c54e
commit
84040b655e
@ -165,6 +165,11 @@ xf86ActivateDevice(LocalDevicePtr local)
|
|||||||
dev->coreEvents = local->flags & XI86_ALWAYS_CORE;
|
dev->coreEvents = local->flags & XI86_ALWAYS_CORE;
|
||||||
RegisterOtherDevice(dev);
|
RegisterOtherDevice(dev);
|
||||||
|
|
||||||
|
#ifdef XKB
|
||||||
|
if (!noXkbExtension)
|
||||||
|
XkbSetExtension(dev, ProcessKeyboardEvent);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (serverGeneration == 1)
|
if (serverGeneration == 1)
|
||||||
xf86Msg(X_INFO, "XINPUT: Adding extended input device \"%s\" (type: %s)\n",
|
xf86Msg(X_INFO, "XINPUT: Adding extended input device \"%s\" (type: %s)\n",
|
||||||
local->name, local->type_name);
|
local->name, local->type_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user