Skip to content
Snippets Groups Projects
Commit 5c19285d authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

parent bf7b0b89
No related branches found
No related tags found
No related merge requests found
...@@ -378,6 +378,7 @@ static BOOL process_attach(void) ...@@ -378,6 +378,7 @@ static BOOL process_attach(void)
{ {
Display *display; Display *display;
XVisualInfo *desktop_vi = NULL; XVisualInfo *desktop_vi = NULL;
const char *env;
setup_options(); setup_options();
...@@ -385,7 +386,8 @@ static BOOL process_attach(void) ...@@ -385,7 +386,8 @@ static BOOL process_attach(void)
/* Open display */ /* 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; if (!(display = XOpenDisplay( NULL ))) return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment