initializes Xlib support for concurrent threads.

Should Fix crashes like reported in:
https://bugs.launchpad.net/synergy2/+bug/299152
This commit is contained in:
syed.amer@gilani.eu 2009-04-13 11:25:45 +00:00
parent 04c5e922d1
commit d06dc55021
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ CXWindowsScreen::CXWindowsScreen(const char* displayName, bool isPrimary) :
assert(s_screen == NULL);
s_screen = this;
// initializes Xlib support for concurrent threads.
XInitThreads();
// set the X I/O error handler so we catch the display disconnecting
XSetIOErrorHandler(&CXWindowsScreen::ioErrorHandler);