summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-03-25 22:15:58 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-03-29 15:26:23 -0700
commit1e5a2c49cb48dfb6696d157c54bfb878547a4936 (patch)
tree4cfe96110779f6d113d8acac1b353cab0dd33dab
parent63cd17d93f24f2bcf971e2b9ae415990eebc59e5 (diff)
XQuartz: Workaround weird key data reported on some layouts
This should make 'Unicode Hex Input' work as an input layout. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Acked-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit 339207be6f184cc783076fc7e2cc12f92f57f2ba)
-rw-r--r--hw/xquartz/quartzKeyboard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xquartz/quartzKeyboard.c b/hw/xquartz/quartzKeyboard.c
index c9b4bbbce..fad3ffcc1 100644
--- a/hw/xquartz/quartzKeyboard.c
+++ b/hw/xquartz/quartzKeyboard.c
@@ -766,7 +766,10 @@ Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info) {
if (err != noErr) continue;
}
- if (len > 0 && s[0] != 0x0010) {
+ /* Not sure why 0x0010 is there.
+ * 0x0000 - <rdar://problem/7793566> 'Unicode Hex Input' ...
+ */
+ if (len > 0 && s[0] != 0x0010 && s[0] != 0x0000) {
k[j] = ucs2keysym (s[0]);
if (dead_key_state != 0) k[j] = make_dead_key (k[j]);
}