winex11.drv: Give XInitThreads another chance.

This commit is contained in:
Alexandre Julliard 2006-10-06 17:56:51 +02:00
parent ab85b653f5
commit 0f8706ec33
1 changed files with 2 additions and 0 deletions

View File

@ -383,6 +383,8 @@ static BOOL process_attach(void)
/* Open display */ /* Open display */
if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" );
if (!(display = XOpenDisplay( NULL ))) return FALSE; if (!(display = XOpenDisplay( NULL ))) return FALSE;
fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */ fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */