XQuartz: Always use TIS for the keyboard layout seed since KB* aren't thread safe.
(cherry picked from commit c8244177b0dbcb28d2f5509e6f2a3e8057889790)
This commit is contained in:
parent
319405fa4a
commit
2db1afbf2e
|
@ -1103,7 +1103,8 @@ Bool LegalModifier(unsigned int key, DeviceIntPtr pDev)
|
||||||
/* TODO: Not thread safe */
|
/* TODO: Not thread safe */
|
||||||
unsigned int QuartzSystemKeymapSeed(void) {
|
unsigned int QuartzSystemKeymapSeed(void) {
|
||||||
static unsigned int seed = 0;
|
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;
|
static TISInputSourceRef last_key_layout = NULL;
|
||||||
TISInputSourceRef key_layout;
|
TISInputSourceRef key_layout;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue