From 0f8706ec33b3193f19b3a55247fe515497063fc5 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 6 Oct 2006 17:56:51 +0200 Subject: [PATCH] winex11.drv: Give XInitThreads another chance. --- dlls/winex11.drv/x11drv_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 0403b5d9d5d..95f9d10878f 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -383,6 +383,8 @@ static BOOL process_attach(void) /* Open display */ + if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" ); + if (!(display = XOpenDisplay( NULL ))) return FALSE; fcntl( ConnectionNumber(display), F_SETFD, 1 ); /* set close on exec flag */