XQuartz: Fixed dropped code in the !XKB blocks, disable XKB support until we figure out a solution for xkeyboard-config
This commit is contained in:
parent
6fb587d3d5
commit
2a72309c06
|
@ -43,7 +43,7 @@
|
||||||
// Define this to get a diagnostic output to stderr which is helpful
|
// Define this to get a diagnostic output to stderr which is helpful
|
||||||
// in determining how the X server is interpreting the Darwin keymap.
|
// in determining how the X server is interpreting the Darwin keymap.
|
||||||
#define DUMP_DARWIN_KEYMAP
|
#define DUMP_DARWIN_KEYMAP
|
||||||
#define XQUARTZ_USE_XKB
|
//#define XQUARTZ_USE_XKB
|
||||||
#define HACK_MISSING 1
|
#define HACK_MISSING 1
|
||||||
#define HACK_KEYPAD 1
|
#define HACK_KEYPAD 1
|
||||||
|
|
||||||
|
@ -917,13 +917,15 @@ void DarwinKeyboardReloadHandler(int screenNum, xEventPtr xe, DeviceIntPtr pDev,
|
||||||
#ifdef XQUARTZ_USE_XKB
|
#ifdef XQUARTZ_USE_XKB
|
||||||
QuartzXkbUpdate(pDev);
|
QuartzXkbUpdate(pDev);
|
||||||
#else
|
#else
|
||||||
|
KeySymsRec keySyms;
|
||||||
|
DarwinLoadKeyboardMapping(&keySyms);
|
||||||
|
|
||||||
if (pDev->key) {
|
if (pDev->key) {
|
||||||
if (pDev->key->curKeySyms.map) xfree(pDev->key->curKeySyms.map);
|
if (pDev->key->curKeySyms.map) xfree(pDev->key->curKeySyms.map);
|
||||||
if (pDev->key->modifierKeyMap) xfree(pDev->key->modifierKeyMap);
|
if (pDev->key->modifierKeyMap) xfree(pDev->key->modifierKeyMap);
|
||||||
xfree(pDev->key);
|
xfree(pDev->key);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeySymsRec keySyms;
|
|
||||||
if (!InitKeyClassDeviceStruct(pDev, &keySyms, keyInfo.modMap)) {
|
if (!InitKeyClassDeviceStruct(pDev, &keySyms, keyInfo.modMap)) {
|
||||||
DEBUG_LOG("InitKeyClassDeviceStruct failed\n");
|
DEBUG_LOG("InitKeyClassDeviceStruct failed\n");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user