mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 15:00:09 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user