mi: switch core keyboard on XI events, not only on core events.
We only get core events through the EQ in exceptional cases, so make sure we actually swap the core keymap for XI events as well. Gives us back the ability to have multiple keyboard layouts simultaneously.
This commit is contained in:
parent
45ec6cd1fb
commit
2b075e97ec
10
mi/mieq.c
10
mi/mieq.c
|
@ -267,10 +267,12 @@ mieqProcessInputEvents(void)
|
|||
return;
|
||||
}
|
||||
|
||||
/* If this is a core event, make sure our keymap, et al, is
|
||||
* changed to suit. */
|
||||
if (e->events->event[0].u.u.type == KeyPress ||
|
||||
e->events->event[0].u.u.type == KeyRelease) {
|
||||
/* Make sure our keymap, et al, is changed to suit. */
|
||||
if ((e->events->event[0].u.u.type == DeviceKeyPress ||
|
||||
e->events->event[0].u.u.type == DeviceKeyRelease ||
|
||||
e->events->event[0].u.u.type == KeyPress ||
|
||||
e->events->event[0].u.u.type == KeyRelease) &&
|
||||
e->pDev->coreEvents) {
|
||||
SwitchCoreKeyboard(e->pDev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user