Commit 1aed832f authored by Davis King's avatar Davis King

Disabled use of XIM for X11 windowing since it makes programs hang on some

systems.  This means the wide character input methods won't work on X11
systems.
parent 017fedcc
......@@ -225,6 +225,10 @@ namespace dlib
window_table.get_mutex().unlock();
xim = NULL;
// I'm disabling XIM usage all together because calling XSetICValues()
// in set_im_pos() randomly hangs the application (on Ubuntu 13.10 at
// least).
/*
window_table.get_mutex().lock();
std::string saved_locale(setlocale (LC_CTYPE, NULL));
if (setlocale( LC_CTYPE, "" ) && XSupportsLocale() && XSetLocaleModifiers(""))
......@@ -232,7 +236,7 @@ namespace dlib
else
setlocale( LC_CTYPE, saved_locale.c_str() );
window_table.get_mutex().unlock();
*/
if (xim)
{
const static XIMStyle preedit_styles[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment