XQuartz: Use CopyKeyClass to copy the keymap to the virtual core keyboard.

(cherry picked from commit 9a801d1716)
This commit is contained in:
Jeremy Huddleston 2009-07-25 20:19:05 -07:00
parent 1031ac3a73
commit 7f28c555b8

View File

@ -68,6 +68,9 @@
#include "X11/keysym.h"
#include "keysym2ucs.h"
extern void
CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
enum {
MOD_COMMAND = 256,
MOD_SHIFT = 512,
@ -349,6 +352,8 @@ void DarwinKeyboardInit(DeviceIntPtr pDev) {
XkbSetRepeatKeys(pDev, -1, AutoRepeatModeOn);
}
CopyKeyClass(pDev, inputInfo.keyboard);
}
void DarwinKeyboardReloadHandler(int screenNum, xEventPtr xe, DeviceIntPtr pDev, int nevents) {