mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +08:00
initializes Xlib support for concurrent threads.
Should Fix crashes like reported in: https://bugs.launchpad.net/synergy2/+bug/299152
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user