XQuartz: Fixed missing symbol in quartzKeyboard debugging

This commit is contained in:
Jeremy Huddleston 2008-08-30 14:19:47 -07:00
parent 3739525d57
commit 8ad55e484f

View File

@ -1180,12 +1180,13 @@ Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info) {
int is_uchr = 1, i, j;
OSStatus err;
KeySym *k;
CFDataRef currentKeyLayoutDataRef = NULL;
TISInputSourceRef currentKeyLayoutRef = TISCopyCurrentKeyboardLayoutInputSource();
keyboard_type = LMGetKbdType();
if (currentKeyLayoutRef) {
CFDataRef currentKeyLayoutDataRef = (CFDataRef )TISGetInputSourceProperty(currentKeyLayoutRef, kTISPropertyUnicodeKeyLayoutData);
currentKeyLayoutDataRef = (CFDataRef )TISGetInputSourceProperty(currentKeyLayoutRef, kTISPropertyUnicodeKeyLayoutData);
if (currentKeyLayoutDataRef)
chr_data = CFDataGetBytePtr(currentKeyLayoutDataRef);
}