mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 14:28:47 +00:00
Xi: check if source has a key class before copying.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user