Xi: modifierKeyMap needs to be set to NULL when copying classes.
Otherwise we have a double reference to the same memory area.
This commit is contained in:
parent
bf6679cba4
commit
961f666090
|
@ -434,6 +434,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
|
||||||
#ifdef XKB
|
#ifdef XKB
|
||||||
to->key->xkbInfo = NULL;
|
to->key->xkbInfo = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
to->key->modifierKeyMap = NULL;
|
||||||
to->key->curKeySyms.map = NULL;
|
to->key->curKeySyms.map = NULL;
|
||||||
CopyKeyClass(from, to);
|
CopyKeyClass(from, to);
|
||||||
} else if (to->key && !from->key)
|
} else if (to->key && !from->key)
|
||||||
|
|
Loading…
Reference in New Issue