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
|
||||
to->key->xkbInfo = NULL;
|
||||
#endif
|
||||
to->key->modifierKeyMap = NULL;
|
||||
to->key->curKeySyms.map = NULL;
|
||||
CopyKeyClass(from, to);
|
||||
} else if (to->key && !from->key)
|
||||
|
|
Loading…
Reference in New Issue
Block a user