Commit 5c19285d authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: Hack to disable XInitThreads when an XIM is used.

parent bf7b0b89
......@@ -378,6 +378,7 @@ static BOOL process_attach(void)
{
Display *display;
XVisualInfo *desktop_vi = NULL;
const char *env;
setup_options();
......@@ -385,7 +386,8 @@ static BOOL process_attach(void)
/* Open display */
if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" );
if (!(env = getenv("XMODIFIERS")) || !*env) /* try to avoid the Xlib XIM locking bug */
if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" );
if (!(display = XOpenDisplay( NULL ))) return FALSE;
......
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