mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-15 21:58:07 +02:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -165,6 +165,11 @@ xf86ActivateDevice(LocalDevicePtr local)
|
|||
dev->coreEvents = local->flags & XI86_ALWAYS_CORE;
|
||||
RegisterOtherDevice(dev);
|
||||
|
||||
#ifdef XKB
|
||||
if (!noXkbExtension)
|
||||
XkbSetExtension(dev, ProcessKeyboardEvent);
|
||||
#endif
|
||||
|
||||
if (serverGeneration == 1)
|
||||
xf86Msg(X_INFO, "XINPUT: Adding extended input device \"%s\" (type: %s)\n",
|
||||
local->name, local->type_name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue