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 commit d627061b48
)
This commit is contained in:
parent
e717cf08e9
commit
8ead41388e
|
@ -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