mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-14 23:27:38 +02: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:
parent
04c5e922d1
commit
d06dc55021
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ CXWindowsScreen::CXWindowsScreen(const char* displayName, bool isPrimary) :
|
|||
|
||||
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…
Add table
Add a link
Reference in a new issue