diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-22 07:57:48 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-22 07:57:48 (GMT) |
commit | 586b77aea13cf6128fc8d09fbfff887ab9838545 (patch) | |
tree | 49732b9d8128de8e9bacd6ec26fa5d3a15bd3813 /unix/tkUnixEvent.c | |
parent | 7aa36089928e7adb750ca9afab8fb779551fb093 (diff) | |
download | tk-586b77aea13cf6128fc8d09fbfff887ab9838545.zip tk-586b77aea13cf6128fc8d09fbfff887ab9838545.tar.gz tk-586b77aea13cf6128fc8d09fbfff887ab9838545.tar.bz2 |
Only call XInitThreads() when we have a very new X11 library. Checked by looking whether XKeycodeToKeysym() is deprecated, which also happend in some very new X11 version.
Diffstat (limited to 'unix/tkUnixEvent.c')
-rw-r--r-- | unix/tkUnixEvent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c index 9b32502..8eaa741 100644 --- a/unix/tkUnixEvent.c +++ b/unix/tkUnixEvent.c @@ -128,7 +128,7 @@ TkpOpenDisplay( int minor = 0; int reason = 0; unsigned int use_xkb = 0; -#ifdef TCL_THREADS +#if defined(XKEYCODETOKEYSYM_IS_DEPRECATED) && defined(TCL_THREADS) static int xinited = 0; TCL_DECLARE_MUTEX(xinitMutex); |