diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-08-30 14:19:47 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-08-30 14:21:17 -0700 |
commit | c4d290fc54542ccba7c3a46bc75b0c3322d0ca48 (patch) | |
tree | 1404ac48666bbf00d81835a1981f17de3de46783 | |
parent | 5d7d959b1143979c3445639c9d108e02da0c1475 (diff) |
XQuartz: Fixed missing symbol in quartzKeyboard debugging
(cherry picked from commit 8ad55e484f0ba9073ce07a03de660cc546a7b668)
-rw-r--r-- | hw/xquartz/quartzKeyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c index d26fbd3b8..264f6f8ed 100644 --- a/hw/xquartz/quartzKeyboard.c +++ b/hw/xquartz/quartzKeyboard.c @@ -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); } |