mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 17:30:13 +01:00
dix: SetModifierMapping should only apply to the ClientPointer and it's SDs.
This commit is contained in:
parent
e1b286d495
commit
2c3645581e
1 changed files with 2 additions and 1 deletions
|
|
@ -1651,10 +1651,11 @@ DoSetModifierMapping(ClientPtr client, KeyCode *inputMap,
|
|||
int numKeyPerModifier, xSetModifierMappingReply *rep)
|
||||
{
|
||||
DeviceIntPtr pDev = NULL;
|
||||
DeviceIntPtr cp = PickKeyboard(client); /* ClientPointer keyboard */
|
||||
int rc, i = 0, inputMapLen = numKeyPerModifier * 8;
|
||||
|
||||
for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
|
||||
if ((pDev->coreEvents || pDev == inputInfo.keyboard) && pDev->key) {
|
||||
if (pDev == cp || (!pDev->isMaster && (pDev->u.master == cp) && pDev->key)) {
|
||||
for (i = 0; i < inputMapLen; i++) {
|
||||
/* Check that all the new modifiers fall within the advertised
|
||||
* keycode range, and are okay with the DDX. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue