Fix kdrive XKB.
This commit is contained in:
parent
9725516b42
commit
1340f34ec9
|
@ -740,6 +740,9 @@ KdKeyboardProc(DeviceIntPtr pDevice, int onoff)
|
||||||
DevicePtr pDev = (DevicePtr)pDevice;
|
DevicePtr pDev = (DevicePtr)pDevice;
|
||||||
KdKeyboardInfo *ki;
|
KdKeyboardInfo *ki;
|
||||||
Atom xiclass;
|
Atom xiclass;
|
||||||
|
#ifdef XKB
|
||||||
|
XkbComponentNamesRec names;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!pDev)
|
if (!pDev)
|
||||||
return BadImplementation;
|
return BadImplementation;
|
||||||
|
@ -788,11 +791,9 @@ KdKeyboardProc(DeviceIntPtr pDevice, int onoff)
|
||||||
KdInitModMap(ki);
|
KdInitModMap(ki);
|
||||||
KdInitAutoRepeats(ki);
|
KdInitAutoRepeats(ki);
|
||||||
|
|
||||||
#ifndef XKB
|
#ifdef XKB
|
||||||
if (!noXkbExtension) {
|
if (!noXkbExtension) {
|
||||||
memset(&names, 0, sizeof(XkbComponentNamesRec));
|
memset(&names, 0, sizeof(XkbComponentNamesRec));
|
||||||
if (XkbInitialMap)
|
|
||||||
names.keymap = XkbInitialMap;
|
|
||||||
|
|
||||||
XkbSetRulesDflts ("base", "pc105", "us", NULL, NULL);
|
XkbSetRulesDflts ("base", "pc105", "us", NULL, NULL);
|
||||||
ret = XkbInitKeyboardDeviceStruct (pDevice,
|
ret = XkbInitKeyboardDeviceStruct (pDevice,
|
||||||
|
|
Loading…
Reference in New Issue