initializes Xlib support for concurrent threads.
Should Fix crashes like reported in: https://bugs.launchpad.net/synergy2/+bug/299152
This commit is contained in:
parent
04c5e922d1
commit
d06dc55021
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue