diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-08-26 23:09:20 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-08-26 23:09:20 -0700 |
commit | c8244177b0dbcb28d2f5509e6f2a3e8057889790 (patch) | |
tree | 9473fd8295ce7cb2fedbce2c7a9d3fd758328797 | |
parent | 01b3a99dff79e0d2b316e02658c19fa79d9144ae (diff) |
XQuartz: Always use TIS for the keyboard layout seed since KB* aren't thread safe.
-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 d5d028035..264f6f8ed 100644 --- a/hw/xquartz/quartzKeyboard.c +++ b/hw/xquartz/quartzKeyboard.c @@ -1103,7 +1103,8 @@ Bool LegalModifier(unsigned int key, DeviceIntPtr pDev) /* TODO: Not thread safe */ unsigned int QuartzSystemKeymapSeed(void) { static unsigned int seed = 0; -#if defined(__x86_64__) || defined(__ppc64__) +//#if defined(__x86_64__) || defined(__ppc64__) +#if 1 static TISInputSourceRef last_key_layout = NULL; TISInputSourceRef key_layout; |