dix: fix up a master check in ChangeKeyboardMapping handling.
We don't just care about the directly attached master, we care about the master keyboard. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <tissoire@cena.fr>
This commit is contained in:
parent
febce8cb81
commit
e1ac704185
|
@ -1664,7 +1664,7 @@ ProcChangeKeyboardMapping(ClientPtr client)
|
|||
stuff->keyCodes, NULL, client);
|
||||
|
||||
for (tmp = inputInfo.devices; tmp; tmp = tmp->next) {
|
||||
if (IsMaster(tmp) || tmp->u.master != pDev)
|
||||
if (IsMaster(tmp) || GetMaster(tmp, MASTER_KEYBOARD) != pDev)
|
||||
continue;
|
||||
if (!tmp->key)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue
Block a user