mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-18 00:42:40 +00:00
mi: Quick fix to stop segfault on non-core keyboards.
This commit is contained in:
parent
5e2f8dee63
commit
ba547d4f6a
2 changed files with 8 additions and 1 deletions
|
|
@ -231,6 +231,14 @@ mieqProcessInputEvents()
|
|||
dev = e->pDev;
|
||||
}
|
||||
|
||||
/* FIXME: Keyboard extension devices do not have devPrivates
|
||||
* initialized, resulting in a segfault in XkbHandleActions. */
|
||||
if (e->event[0].u.u.type == DeviceKeyPress ||
|
||||
e->event[0].u.u.type == DeviceKeyRelease ||
|
||||
e->event[0].u.u.type == KeyPress ||
|
||||
e->event[0].u.u.type == KeyRelease)
|
||||
e->pDev = dev = inputInfo.keyboard;
|
||||
|
||||
/* MPX devices send both core and Xi events.
|
||||
* Use dev to get the correct processing function but supply
|
||||
* e->pDev to pass the correct device
|
||||
|
|
|
|||
Loading…
Reference in a new issue