From cd7249d41dcb6985f6e1c84ca3940c2923d9b63e Mon Sep 17 00:00:00 2001 From: "syed.amer@gilani.eu" Date: Tue, 4 Jan 2011 19:01:24 +0000 Subject: [PATCH] reactivated fix for xlib. the fix apparently only broke things on very very old rhel installations. --- lib/platform/CXWindowsScreen.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/platform/CXWindowsScreen.cpp b/lib/platform/CXWindowsScreen.cpp index f5acec64..2251ecfc 100644 --- a/lib/platform/CXWindowsScreen.cpp +++ b/lib/platform/CXWindowsScreen.cpp @@ -111,11 +111,10 @@ CXWindowsScreen::CXWindowsScreen(const char* displayName, bool isPrimary, int mo s_screen = this; // initializes Xlib support for concurrent threads. - // ...which breaks badly on RHEL for some reason, upstream #194 - //if (XInitThreads() == 0) - //{ - // throw XArch("XInitThreads() returned zero"); - //} + if (XInitThreads() == 0) + { + throw XArch("XInitThreads() returned zero"); + } // set the X I/O error handler so we catch the display disconnecting