Xi: check if source has a key class before copying.
This commit is contained in:
parent
6271df6953
commit
ea05cf0813
@ -378,7 +378,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
|
||||
}
|
||||
|
||||
ALLOC_COPY_CLASS_IF(key, KeyClassRec);
|
||||
if (to->key)
|
||||
if (to->key && from->key)
|
||||
{
|
||||
#ifdef XKB
|
||||
to->key->xkbInfo = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user